Python pip常用命令

pip安装python包

pip install SomePackage            # latest version
pip install SomePackage==1.0.4     # specific version  (double equal-sign)
pip install SomePackage>=1.0.4     # minimum version
pip install SomePackage-1.0.4-py2.py3-none-any.whl  # Install a package that’s already been downloaded

pip查看已安装的包

pip show packagename             # Show specific package
pip list                         # List all packages were installed
pip show --files SomePackage     # Show what files were installed

pip检测更新

pip list –outdated

pip升级包

pip install --upgrade packagename

pip卸载包

pip uninstall packagename

pip使用清华镜像快速下载

pip install SomePackage -i https://pypi.tuna.tsinghua.edu.cn/simple

 

你可能感兴趣的:(Python,效率&工具,pip,install,uninstall,python)