[PYTHON] Frequently used pip commands

A note of frequently used pip commands.

Check the version

$ pip --version
pip 10.0.1 from ~/.pyenv/versions/3.5.3/lib/python3.5/site-packages/pip (python 3.5)

Install packages normally (eg Flask)

pip install Flask

Install the package defined in requirements.txt

pip install -r requirements.txt

View installed packages

pip list

View installed packages in requires.txt format

pip freeze

Show installed packages that are not up to date

pip list --outdated

Update installed packages that are not the latest

pip list --outdated | awk 'NR>2 {print $1}' | xargs pip install -U

Remove all installed packages

pip freeze | xargs pip uninstall -y

Recommended Posts

Frequently used pip commands
pyenv Frequently used commands
Frequently used tmux commands
Frequently used Linux commands
Frequently used Linux commands
Frequently used commands in virtualenv
8 Frequently Used Commands in Python Django
[Linux] Frequently used Linux commands (file operation)
Frequently used Linux commands (for beginners)
[Anaconda3] Summary of frequently used commands
[Linux] Frequently used Linux commands (folder operation)
[Linux] Review of frequently used basic commands 2
Summary of frequently used commands of django (beginner)
Summary of frequently used commands in matplotlib
[Linux] Review of frequently used basic commands
[Python/Django] Summary of frequently used commands (3) <Operation of PostgreSQL>
[Linux command] A memorandum of frequently used commands
[Python/Django] Summary of frequently used commands (2) <Installing packages>
Summary of frequently used commands (with petit commentary)
Docker. Set frequently used commands to alias "with explanation"
A collection of commands frequently used in server management
Display a list of frequently used commands on Zsh
[For beginners] Django Frequently used commands and reference collection
Frequently used ps command options
Python frequently used code snippets
[Golang] Notes on frequently used functions
Classify frequently used file / folder dialogs
Commands often used on GAE / P
[Python/Django] Summary of frequently used commands (4) -Part 2- <Production operation: Amazon EC2 (Amazon Linux 2)>
[Python/Django] Summary of frequently used commands (4) -Part 1- <Production operation: Amazon EC2 (Amazon Linux 2)>
Frequently used command line shortcut keys (Mac)
Disk-related commands often used in Ubuntu (memories)
Python + Selenium Frequently used operation method summary
[Linux] List of Linux commands used in practice
[python] Frequently used techniques in machine learning
Frequently used syntax memorandum for each language