python 安装cv2
python 安装cv2:如果安装时报这种错误pip install opencv-python// 也报错可以使用:pip3 install opencv-python进行安装,但是这种安装方法太慢,可以使用国内源清华:https://pypi.tuna.tsinghua.edu.cn/simple阿里云:http://mirrors.aliyun.com/pypi/simple/中国科技大学
·
python 安装cv2:

如果安装时报这种错误
pip install opencv-python // 也报错
可以使用:
pip3 install opencv-python
进行安装,但是这种安装方法太慢,可以使用国内源
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
// 注:新版ubuntu要使用https源
临时使用
可以在使用pip的时候加参数
-i https://pypi.tuna.tsinghua.edu.cn/simple
例如:pip install -i http://mirrors.aliyun.com/pypi/simple/ tensorflow,这样就会从阿里云这边的镜像去安装tensorflow库。永久使用
在Linux下, 修改
~/.pip/pip.conf(没有就创建一个文件夹及文件。文件夹要加“.”,表示是隐藏文件夹)

更多推荐



所有评论(0)