安装报错:Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘\\METADATA‘

安装指令:

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

报错如下:

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'd:\\anaconda3\\envs\\pytorch\\lib\\site-packages\\numpy-1.21.6.dist-info\\METADATA'

解决方法:

按照报错中的路径 找到:“numpy-1.21.6.dist-info”并删除

即可成功安装:

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
xiaoxingxing的头像xiaoxingxing管理团队
上一篇 2023年7月6日
下一篇 2023年7月6日

相关推荐