Skip to content
Python

pip Install

Common pip package management commands.

By EZ4Code Team
pippackage-manager

Code

# Install package
# pip install requests

# Specify version
# pip install requests==2.28.0
# pip install "requests>=2.28,<3.0"

# Upgrade
# pip install --upgrade requests

# Uninstall
# pip uninstall requests

# List installed
# pip list
# pip show requests

# Export and install dependencies
# pip freeze > requirements.txt
# pip install -r requirements.txt

# Install from mirror
# pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple

Explanation

pip is the standard Python package manager, supporting version control and mirror acceleration.

More Python Snippets