pipPython 包安裝和管理工具
pip 是一個 Python 包安裝與管理工具。
從PyPI安裝軟件包:
$ pip install SomePackage
[...]
Successfully installed SomePackage
安裝已經(jīng)從PyPI下載或從其他地方獲得的軟件包:
$ pip install SomePackage-1.0-py2.py3-none-any.whl
[...]
Successfully installed SomePackage
顯示安裝了哪些文件:
$ pip show --files SomePackage
Name: SomePackage
Version: 1.0
Location: /my/env/lib/pythonx.x/site-packages
Files:
../somepackage/__init__.py
[...]
列出哪些軟件包已過期:
$ pip list --outdated
SomePackage (Current: 1.0 Latest: 2.0)
升級軟件包:
$ pip install --upgrade SomePackage
[...]
Found existing installation: SomePackage 1.0
Uninstalling SomePackage:
Successfully uninstalled SomePackage
Running setup.py install for SomePackage
Successfully installed SomePackage
卸載軟件包:
$ pip uninstall SomePackage
Uninstalling SomePackage:
/my/env/lib/pythonx.x/site-packages/somepackage
Proceed (y/n)? y
Successfully uninstalled SomePackage
評論
圖片
表情
