赞
踩
方法一:
pycharm终端或cmd中直接pip install 库名 镜像源:
- pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
- # 或者
- pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-pyhton
方法二:
pycharm终端中配置
- pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
- pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn
配置如下:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。