首页 > 代码库 > pip笔记(译)
pip笔记(译)
从PyPI中安装包
>>> pip install SomePackage
[...]
Successfully installed SomePackage
从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
pip笔记(译)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。