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/simpleExplanation
pip is the standard Python package manager, supporting version control and mirror acceleration.
More Python Snippets
Sort Dictionary by Value
Sort a Python dictionary by its values in descending order.
List Comprehension
Quickly generate lists using list comprehensions.
Dictionary Merging
Multiple ways to merge dictionaries.
File Read/Write
Various ways to read and write files.
CSV Processing
Read and write CSV files using the csv module.
JSON Processing
JSON serialization and deserialization.