import specific version of package python

Solutions on MaxInterview for import specific version of package python by the best coders in the world

showing results for - "import specific version of package python"
Mía
09 Jul 2017
1# adapted from answer given by Stack Overflow user in the source link
2
3import pkg_resources
4pkg_resources.require("your_package==its_version")
5import your_package