[Resolved] error Could not install packages due to an EnvironmentError

OpenCV error occurred during the installation
of code:

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

Error reads as follows:

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.

solution:

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

Guess you like

Origin www.cnblogs.com/hankleo/p/11330778.html