- Install a package:pip install [package_name]- Install a specific version of a package:pip install [package_name]==[package_version]- Upgrade a package:pip install -U [package_name]- Uninstall a package:pip uninstall [package_name]- Save installed packages to file:pip freeze > [requirements.txt]- Install packages from file:pip install -r [requirements.txt]
pip [command] [options]
pip is an alternative Python package installer. It performs the same basic job as easy_install, but with some extra features. It can work with version control repositories (currently only Git, Mercurial, and Bazaar repositories), logs output extensively, and prevents partial installs by downloading all requirements before starting installation.
It has some disadvantages when compared to easy_install. It does not use egg files, although it does preserve egg metadata. Some setuptools features are not yet supported, and some custom setup.py features won´t work.
pip is designed to work with virtualenv, in that it can be given the path to a virtualenv environment (with -E or --environment) and it will know to install to that environment instead of the system locations.
The command comes before any options. The following commands are recognized:
This manual page was originally written by Jeff Licquia <firstname.lastname@example.org>, later rewritten by Carl Chenet <email@example.com>.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, version 3 or any later version published by the Free Software Foundation.