ong-z
1/8/2016 - 4:45 AM

Pip https://pip.pypa.io/en/stable/

# Install Packages from PyPI
pip install SomePackage            # latest version
pip install SomePackage==1.0.4     # specific version
pip install 'SomePackage>=1.0.4'   # minimum version

# List packages
pip list              # installed packages
pip list --outdated   # outdated packages

# Show packages
pip show SomePackage          # show installed package details
pip show --files SomePackage  # show what files were installed 

# Search packages
pip search "query"

# show pip dependency tree (need to first install package)
pipdeptree

# Requirements files
pip freeze > requirements.txt
pip install -r requirements.txt

# Upgrade a package
pip install --upgrade SomePackage

# Uninstall a package
pip uninstall SomePackage
pip uninstall Package1 Package2 Package3