一、Anaconda更换国内镜像源
二、pip 安装库出错:Defaulting to user installation because normal site-packages is not writeable
将Anaconda安装路径下的如下文件夹修改权限:
![](https://img-blog.csdnimg.cn/img_convert/3548b0ed7d814cc99e0647311924b1ee.png)
点击鼠标右键->属性->安全选项卡->Users(点击右下角编辑)->全部勾选允许,做到这我已经不报着个问题了,还有问题可以参考:http://t.csdn.cn/pJnWE。
![](https://img-blog.csdnimg.cn/img_convert/45b69cf53baa4d0ba333a355702476e9.png)
三、socket.timeout: The read operation timed out
1、安装cvzone时出现这样的错误:socket.timeout: The read operation timed out
2、原因:pip下载的时国外的资源,速度过慢,应该切换至国内镜像(我已切换还是很慢)
3、解决办法:
更换 pip 源自国内镜像,在 pip install 后面添加,然后在后面加上所要安装的包。(我用的清华源)
-i https://pypi.tuna.tsinghua.edu.cn/simple