- 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
推薦閱讀
- 高手是如何做產品設計的(全2冊)
- 數字媒體應用教程
- OpenShift開發指南(原書第2版)
- Arduino開發實戰指南:LabVIEW卷
- Learning C++ Functional Programming
- 神經網絡編程實戰:Java語言實現(原書第2版)
- Architecting the Industrial Internet
- C語言從入門到精通(第4版)
- Java深入解析:透析Java本質的36個話題
- SQL Server數據庫管理與開發兵書
- Practical Game Design with Unity and Playmaker
- C#程序設計(項目教學版)
- Apache Camel Developer's Cookbook
- 人工智能算法(卷1):基礎算法
- 深入實踐DDD:以DSL驅動復雜軟件開發