安装报错: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”并删除

即可成功安装:

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

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://www.net2asp.com/a49274b37d.html