opencv安装(成功):https://blog.csdn.net/qq_41627235/article/details/87692748
直接方法指定版本cmd:pip install opencv-python==3.4.2.16 -i https://pypi.tuna.tsinghua.edu.cn/simple (任何源的网址)
创建虚拟环境:用于python版本与安装库的版本不能兼容的情况,且在anaconda下更改python版本太麻烦
在pycharm中更改解释器就行,打开conda,使用时在base路径下激活:activate name(如activate py36)
国内源
清华: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/