pip原创
使用Python
的pip
管理。
# pip
# 查看版本
# 升级
# win 10
pip install --upgrade --user pip
# 源
国内的pip源
阿里云:https://mirrors.aliyun.com/pypi/simple/
清华:https://pypi.tuna.tsinghua.edu.cn/simple
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
清华
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
阿里云
python -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ python -m pip config set global.trusted-host mirrors.aliyun.com
# 解释器
通过pycharm
设置project:xxx->python Interpreter
。
警告
建议更换国内 pip
源!!!
比如:阿里云、清华等。
# 查看 pip 安装信息
pip list
pip3 list
# 安装特定版本
使用 ==
pip3 install opencv-python==4.2.0.34
# 卸载
# 查看安装包信息
pip3 show 包名
上次更新: 2022/08/23, 18:12:45