This document provides a pip cheatsheet that summarizes pip commands and parameters for installing, uninstalling, listing, searching, and managing Python packages. It includes descriptions for general parameters like verbose mode, requirements files, caching, and more. Commands are categorized for freeze, install, list, show, search, and uninstall.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
566 views1 page
Pip Cheatsheet
This document provides a pip cheatsheet that summarizes pip commands and parameters for installing, uninstalling, listing, searching, and managing Python packages. It includes descriptions for general parameters like verbose mode, requirements files, caching, and more. Commands are categorized for freeze, install, list, show, search, and uninstall.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Pip Cheatsheet
General Parameters Description -r FILE,--requirement FILE Uninstall packages listed in
requirements file -v,--verbose Verbose mode (More output) -y,--yes Assume “yes” for questions -q,--quiet Quiet mode (Less output) Freeze Description -h,--help Help/Options pip freeze Generate requirements file -V,--version Display version info -r FILE,--requirement FILE Use the order given in the file --isolated Ignore environment variables and user configuration -f URL,--find-links URL URL for finding packages --log PATH Log file -l,--local Only list virtualenv packages --proxy PROXY USER:PSWD@SERVER:PORT --user Only list user-site packages --retries X Retry connection X times Install Description --timeout SECONDS Try for X seconds before retry pip install PKG Install package --cache-dir DIR Cache directory pip install PKG==1.0 Install specific version --no-cache-dir Disable cache pip install 'PKG>=1.0' At least, install version X --disable-pip-version-check Do not check Pip version -r FILE,--requirement FILE Install listed packages in the requirements file --cert PATH Path to secondary CA bundle -b DIR,--build DIR Directory for building packages --client-cert CERT Path to SSL certificate -t DIR,--target DIR Install in directory --trusted-host HOSTNAME Consider the host trusted -d DIR, --download DIR Download only List Description -U,--upgrade Update listed packages pip list List packages --force-reinstall Re-install packages when updating -o,--outdated List outdated packages -I,--ignore-installed Re-install -u,--uptodate List current packages --no-deps Do not install dependencies -e,--editable List editable items --egg Install as an Egg -l,--local List local virtualenv packages --compile Compile *.py to *.pyc --user List user-site packages --no-compile Do not compile --pre Include developmental packages --no-use-wheel Do not use wheels -i URL,--index-url URL PyPI URL --pre Include developmental versions --extra-index-url URL Additional package repos --no-clean Do not clean build directories --no-index Ignore package index -i URL,--index-url URL PyPI URL -f URL,--find-links URL Search for archives at the URL --extra-index-url URL Additional URLs --allow-external PKG Allow package installation --no-index Only use --find-links URLs --allow-all-external Allow externally hosted packages to be installed -f URL,--find-links URL Parse links for archives --allow-unverified PKG Install insecure package --allow-external PKG Install 3rd-party package --process-dependency-links Process links for dependencies --allow-all-external Install 3rd-party packages Show Description --allow-unverified PKG Install unverified package pip show PKG Display package info --process-dependency-links Process links for dependencies -f, --files List package's files Search Description pip search KEYWORD Search PyPI for keyword --index URL Repo to search Uninstall Description pip uninstall PKG Uninstall/remove package
Created by Devyn Collier Johnson [email protected] (2015 v2) More cheatsheets at DCJTech.info