[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-573837-105":53,"doc-detail-573837-en":125},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":118,"head_meta":120,"extra_data":122,"updated_unix":124},105,"en","pip-cheat-sheet-most-useful-pip-commands","pip Cheat Sheet - most useful pip commands","","Concise reference for pip, focused on installing, managing, and using Python packages efficiently. Covers core terminology (distribution, package, wheel), practical installation sources (PyPI, local wheel, Git repository, directory), and version control operators (exact, range, and exclusions). Includes environment freezing via pip freeze, searching and displaying package metadata, downloading dependencies, listing installed modules, using alternative indexes, and building wheel artifacts for reproducible deployments.",{"@graph":63,"@context":117},[64,80,100],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/pip-cheat-sheet-most-useful-pip-commands/573837/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":94,"encodingFormat":93,"isAccessibleForFree":95,"interactionStatistic":96},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/pip-cheat-sheet-most-useful-pip-commands/573837.png","ImageObject",442,249,{"name":88,"@type":89},"Jasmine","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-14",true,{"@type":97,"interactionType":98,"userInteractionCount":9},"InteractionCounter",{"@type":99},"ViewAction",{"@type":101,"mainEntity":102},"FAQPage",[103,109,113],{"name":104,"@type":105,"acceptedAnswer":106},"What is the difference between a wheel and a normal install?","Question",{"text":107,"@type":108},"A wheel is a special file ending with .whl. Installing a wheel mainly copies files into place and does not require compiling or processing.","Answer",{"name":110,"@type":105,"acceptedAnswer":111},"How do I install a specific package version with pip?",{"text":112,"@type":108},"Use an equality constraint, for example: pip install requests==2.22.0. For a version range, use operators like >= and \u003C with commas.",{"name":114,"@type":105,"acceptedAnswer":115},"How can I capture installed packages so the environment can be recreated later?",{"text":116,"@type":108},"Use pip freeze to write all currently installed versions to a text file, then install from that file with pip install -r requirements.txt.","https://schema.org",{"og:url":78,"og:type":119,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":121,"canonical":78},"index,follow",{"doc_id":123,"site_id":56},573837,1792015512,{"code":4,"msg":5,"data":126},{"doc_id":123,"user_id":127,"nickname":88,"user_avatar":128,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":129,"file_id":130,"file_url":131,"file_type":132,"file_size":133,"view_count":9,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":9,"language":134,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":135,"faqs":136,"seo_title":137,"seo_description":61,"update_tm":138,"read_time":4},2336478487870,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","[Opensource.com](Opensource.com: pip Cheat Sheet)[:](Opensource.com: pip Cheat Sheet)[ pip Cheat Sheet](Opensource.com: pip Cheat Sheet) By Moshe Zadka  \nGet to know the most useful pip commands to help you install, manage, and use Python software packages.  \n\n| terminology |\n| --- |\n| a“distribution” is something that pip can install.\u003Cbr>a “package” is something that can be used in import statements.\u003Cbr>Most distributions include a single package of the same name, but there are exceptions. For example, pip install attrs installs a package importable with import attr\u003Cbr>A “wheel” is a special file with the suffix .whl\u003Cbr>Installing a wheel just copies files into place. No compiling or processing is required. |\n\n\n| Package sources |\n| --- |\n| Install package from PyPI\u003Cbr>$ pip install requests |\n| Install package from a local wheel file\u003Cbr>$ pip install requests-2.22.0-py2.py3-none-any.whl |\n| Install package from a Git repository\u003Cbr>$ pip install git+[https://github.com/psf/requests.git](https://github.com/psf/requests.git) |\n| Install package from a directory\u003Cbr>$ pip install /home/user/src/requests |\n\n| Package versions |\n| --- |\n| Install specific version\u003Cbr>$ pip install requests==2.22.0 |\n| Install most recent version in a range\u003Cbr>$ pip install requests>=2.22.0,\u003C3 |\n| Install package, avoid a specific version\u003Cbr>$ pip install requests!=2.21.0 |\n\n| Freezing (useful for recording an environment so it can be duplicated later) |\n| --- |\n| Capture all currently installed versions in a text file $ pip freeze > requirements.txt |\n| Install packages from a requirements file\u003Cbr>$ pip install-r requirements.txt |\n\n\n| search |\n| --- |\n| search for packages mentioning “term”pip search \u003Csome term> |\n\n\n| show |\n| --- |\n| show details of package\u003Cbr>pip show \u003Csome package>\u003Cbr>It is usually easier to search and view information using the [PyPI.org](PyPI.org) web site |\n\n\n| DownloaD |\n| --- |\n| download a package and all of its dependencies. except in unusual cases, it is better to run “pip wheel”and have the packages in a wheel format. pip download \u003Cpackage> |\n\n\n| list installeD |\n| --- |\n| Lists all modules currently installed by pip. Usually pip freeze is a better alternative.\u003Cbr>pip list |\n\n\n| custom inDexes |\n| --- |\n| Install from an alternative index to PyPI\u003Cbr>$ pip install--index-url [https://our-pypi-proxy.internal.example.com](https://our-pypi-proxy.internal.example.com) |\n| Install packages using an *extra index* for local, unpublished externally, packages.\u003Cbr>$ pip install--extra-index-url [https://local-pacakges.internal.example.com](https://local-pacakges.internal.example.com) |\n\n\n| wheels |\n| --- |\n| Produce wheels of the package and all its dependencies,\u003Cbr>and put them in the “wheelhouse” directory\u003Cbr>pip wheel--wheel-dir ./wheelhouse/ some-package[==version] |\n| Produce wheels of all packages named in requirements file,\u003Cbr>and put them in the “wheelhouse” directory\u003Cbr>pip wheel--wheel-dir wheelhouse-r requirements.txt |\n\n[opensource.com](opensource.com) [Twitter](Twitter @opensourceway | facebook.com/opensourceway | CC)[ @](Twitter @opensourceway | facebook.com/opensourceway | CC)[opensourceway](Twitter @opensourceway | facebook.com/opensourceway | CC)[ |](Twitter @opensourceway | facebook.com/opensourceway | CC)[ facebook.com/opensourceway](Twitter @opensourceway | facebook.com/opensourceway | CC)[ |](Twitter @opensourceway | facebook.com/opensourceway | CC)[ CC](Twitter @opensourceway | facebook.com/opensourceway | CC) BY-SA 4.0","cbCailJq0HbuWdj9","https://ap.wps.com/l/cbCailJq0HbuWdj9","pdf",108005,"English","# Package sources\n## Package versions\n## Freezing (requirements)\n## Search and show\n## Download, list installed, and wheels\n## Custom indexes","[{\"question\":\"What is the difference between a wheel and a normal install?\",\"answer\":\"A wheel is a special file ending with .whl. Installing a wheel mainly copies files into place and does not require compiling or processing.\"},{\"question\":\"How do I install a specific package version with pip?\",\"answer\":\"Use an equality constraint, for example: pip install requests==2.22.0. For a version range, use operators like \\u003e= and \\u003c with commas.\"},{\"question\":\"How can I capture installed packages so the environment can be recreated later?\",\"answer\":\"Use pip freeze to write all currently installed versions to a text file, then install from that file with pip install -r requirements.txt.\"}]","pip Cheat Sheet - most useful pip commands | PDF",1791948129]