在anaconda中pip install 的时候报出如下错误:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'D:\\anaconda\\Lib\\site-packages\\cv2\\cv2.cp38-win_amd64.pyd'
Consider using the `--user` option or check the permissions.
解决办法:
在pip install 后面加上 --user + 需要安装的包名,添加--user选项赋予权限。
如pip install --user albumentations -i https://pypi.tuna.tsinghua.edu.cn/simple
欢迎关注公众号: