[已解决]报错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
posted @ 2019-08-10 10:41  hank-li  阅读(18038)  评论(0编辑  收藏  举报