Install Packages
suggest changeTo install the latest version of a package named SomePackage:
$ pip install SomePackage
To install a specific version of a package:
$ pip install SomePackage==1.0.4
To specify a minimum version to install for a package:
$ pip install "SomePackage>=1.0.4"
Quote the specifier. Otherwise the shell treats > as redirection.
If a command shows a permission denied error on Linux or Unix, sudo will run it as root. That writes into the system interpreter; a virtual environment avoids that.
Install from requirements files
$ pip install -r requirements.txt
Each line of the requirements file indicates something to be installed, and is parsed like an argument to pip install. Details on the format of the files are here: Requirements File Format.
After installing the package you can check it using the freeze command:
$ pip freeze
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents