PIP COMMAND LIST — PYTHON 3.
14
Command Description
pip --version Show current pip version.
pip install package_name Install a package from PyPI.
pip install package==version Install a specific version of a package.
pip install --upgrade package_name Upgrade an existing package to the latest
version.
pip uninstall package_name Uninstall a package.
pip list List all installed packages.
pip show package_name Show detailed information about a specific
package.
pip freeze List installed packages with their versions
(for [Link]).
pip check Verify that installed packages have
compatible dependencies.
pip help Display pip help documentation.
pip install -r [Link] Install all dependencies listed in a
requirements file.
pip cache dir Show pip cache directory location.
pip cache purge Clear the pip cache directory.
pip config list Display current pip configuration settings.
pip config edit Open pip configuration file for editing.
pip config set key value Set or modify a specific configuration key.
pip install --user package_name Install package only for the current user.
pip install --force-reinstall package_name Force reinstall a package even if already
installed.
pip install --no-cache-dir package_name Install a package without using the pip
cache.
pip install -e path Install a local project in editable mode
(used for development).
pip install git+URL Install a package directly from a GitHub or
Git repository.
pip index versions package_name List all available versions of a package.
pip debug Show environment and debugging
information.
pip completion --bash Enable pip autocompletion in bash
terminal.
pip search keyword Search for a package on PyPI (deprecated).
Bonus Tips 💡
1 To update pip itself:
1️⃣
python -m pip install --upgrade pip
2️⃣To see where pip installs packages:
pip show flask
3️⃣To export all installed packages:
pip freeze > [Link]
4️⃣To reinstall everything later:
pip install -r [Link]