numpy报错
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed
看有帖子说这么解决
pip uninstall -y numpy
pip uninstall -y setuptools
pip install setuptools
pip install numpy
但是在执行pip install numpy时报错了
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'd:\\programdata\\anaconda3\\envs\\qt\\lib\\site-packages\\numpy-1.19.5.dist-info\\METADATA'
看有帖子说是Python Page模块文件的文件路径太长,但是我的电脑之前安装是成功的,所以应该不是这个问题,打开'd:\\programdata\\anaconda3\\envs\\qt\\lib\\site-packages\\numpy-1.19.5.dist-info\\路径查看,原来是'd:\\programdata\\anaconda3\\envs\\qt\\lib\\site-packages\\numpy-1.19.5.dist-info\\路径下文件不全,删掉'd:\\programdata\\anaconda3\\envs\\qt\\lib\\site-packages\\numpy-1.19.5.dist-info\\文件夹,pip install numpy重新安装numpy,安装成功