0
点赞
收藏
分享

微信扫一扫

pip quick start

https://pip.pypa.io/en/latest/quickstart.html

首先, 安装 pip.

从 PyPI 安装包:


$ pip install SomePackage
  [...]
  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



举报

相关推荐

0 条评论