Python安装torchvision报错 ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘d:\anaconda\envs\py37\lib\site-packages\~orch\lib\asmjit.dll’
Consider using the --user
option or check the permissions.
原始代码
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torchvision
对此报错:ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘d:\anaconda\envs\py37\lib\site-packages\~orch\lib\asmjit.dll’
Consider using the --user
option or check the permissions
解决办法
在install后增加 --user即可解决问题
即 pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple torchvision
运行成功安装torchvision