关于PIP 总结和记忆巩固
查找需要安裝的包
pip search <包名>
安裝python包
pip install?
pip install <包名>==1.0.4?
pip install -r requirements.txt?
pip install <包名> -i?http://pypi.mirrors.ustc.edu.cn/simple/?
pip install -e < local project path> (這個命令相當于pip install develop)?
阿里源:http://mirrors.aliyun.com/pypi/simple/?
科大源:http://pypi.mirrors.ustc.edu.cn/simple/?
清華源:http://mirrors.tuna.tsinghua.edu.cn/pypi/simple?
官方源:https://pypi.python.org/
在配置文件中指定安裝源
直接在配置文件中添加源,如果沒有配置文件可以手動添加一個?
/etc/pip.conf?
[global]?
timeout = 6000?
index-url =?http://pypi.douban.com/simple
列出已經安裝的包
pip list?
pip freeze
列出本地可以editable的項目
pip list -e
列出過期的包
pip list -o
升級包
pip install <包名> -U
安裝的包所在目錄
pip show -f <包名>?
pip show
?
卸載安裝
Uninstall packages.?
pip is able to uninstall most installed packages. Known exceptions are:?
Pure distutils packages installed with python setup.py install, which leave behind no metadata to >determine what files were installed.?
Script wrappers installed by python setup.py develop.?
pip also performs an automatic uninstall of an old version of a package before upgrading to a newer version.\
pip uninstall <包名>?
pip uninstall -y -r requirement.txt
轉載于:https://www.cnblogs.com/pyxiaomangshe/p/7723548.html
總結
以上是生活随笔為你收集整理的关于PIP 总结和记忆巩固的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《JavaScript 标准参考教程》阮
- 下一篇: 45度炸队Alpha冲刺博客集