Installing external modules using pip

suggest change

Finding / 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

You may need to use `sudo` with pip on some Linux Systems

For more information regarding pip do read here.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents