关于#python#的问题,请各位专家解答!

![img](https://img-mid.csdnimg.cn/release/

static/image/mid/ask/090683813856134.png "#left")

img

img


vccode运行anaconda坏境时出现的错误,我专业性不好,谁能帮我整的代码能正常运行啊

在cmd终端运行以下代码,重新安装numpy,一般就这两个版本,都试一下

pip install -U numpy==1.21.5 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -U numpy==1.19.5 -i https://pypi.tuna.tsinghua.edu.cn/simple

img


你的python版本和这个numpy版本匹配不上,建议你降下版本就可以解决

你这里写的啥呀

img

把你的lib目录添加到环境变量中

D:lAPP\Anaconda\envs\xxxx\Library\bin

这个网页可能有用
https://numpy.org/devdocs/user/troubleshooting-importerror.html

从新下载新板本

img

numpy版本太低了,与你python版本不匹配,应该升级
cmd 直接执行 pip install --upgrade numpy==1.23.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

您的采纳就是我最大的动力,谢谢!!!

img