[已解决]报错Could not install packages due to an EnvironmentError

安装OpenCV过程中出现错误
代码:

pip-conda install -i https://pypi.douban.com/simple/ opencv-python

报错内容如下:

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/mac/Anaconda/anaconda3/lib/python3.7/site-packages/cv2/__init__.py'
Consider using the `--user` option or check the permissions.

解决方案:

pip-conda install --user --index-url  https://pypi.douban.com/simple/ opencv-python

猜你喜欢

转载自www.cnblogs.com/hankleo/p/11330778.html