- Secret Recipes of the Python Ninja
- Cody Jackson
- 125字
- 2021-06-25 22:14:40
How to do it...
- Use pip to pull the latest version of the package directly from PyPI:
$ pip install <package_name>
- Alternately, a specific version of the package can be downloaded:
$ pip install <package_name>==1.2.2
Here is an example of downgrading pygments from our earlier install in pipenv:
- As a final option, a minimum version of a package can be downloaded; this is common when a package has a significant change between versions:
$ pip install "<package_name> >= 1.1"
- If a PyPI package has a wheel file available, pip will automatically download the wheel; otherwise, it will pull the source code and compile it.
$ pip install <some_package>
- To install a local wheel file, provide the full path to the file:
$ pip install /local_files/SomePackage-1.2-py2.py3-none-any.whl
推薦閱讀
- INSTANT Mock Testing with PowerMock
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- Manga Studio Ex 5 Cookbook
- Learning AWS Lumberyard Game Development
- Visual C#.NET程序設計
- Java實戰(第2版)
- SSM開發實戰教程(Spring+Spring MVC+MyBatis)
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- Java Web從入門到精通(第3版)
- Java并發編程之美
- Go語言入門經典
- AI自動化測試:技術原理、平臺搭建與工程實踐
- 百萬在線:大型游戲服務端開發
- Three.js權威指南:在網頁上創建3D圖形和動畫的方法與實踐(原書第4版)
- Magento 2 Developer's Guide