Installing external modules using pip
suggest changeFinding / installing a package
pip search has been disabled on PyPI. Search on the PyPI website instead.
$ pip search <query>
# No longer supported: PyPI disabled the search index this command used
Installing a package is as simple as typing (in a terminal / command-prompt, not in the Python interpreter)
$ pip install [package_name] # latest version of the package
$ pip install [package_name]==x.x.x # specific version of the package
$ pip install '[package_name]>=x.x.x' # minimum version of the package
where x.x.x is the version number of the package you want to install.
When your server is behind proxy, you can install package by using below command:
$ pip --proxy http://<server address>:<port> install [package_name]
Upgrading installed packages
When new versions of installed packages appear they are not automatically installed to your system. To get an overview of which of your installed packages have become outdated, run:
$ pip list --outdated
To upgrade a specific package use
$ pip install [package_name] --upgrade
Updating all outdated packages is not a standard functionality of pip.
Upgrading pip
You can upgrade your existing pip installation by using the following commands
-
On Linux or macOS:
$ pip install -U pip
You may need to use `sudo` with pip on some Linux Systems
-
On Windows:
py -m pip install -U pipor
python -m pip install -U pip
For more information regarding pip do read here.