解决错误ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘D:\study\anaconda3\envs\maskrcnn\Lib\site-packages\cv2\cv2.cp37-win_amd64.pyd’
Consider using the --user
option or check the permissions.
在按照opencv-contri后拒绝下载
一开始输入的代码为
pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple
实际上是win10下需要管理员权限不够,需要在install 后增加-user
实例如下
pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple
成功