[已解決]報錯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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM