Numpy已安装,但astropy表示未安装numpy

问题描述

当我的程序搜索Numpy时,将引发ImportError。然而,如import numpy所示,已经安装了numpy。

enter image description here

我尝试过

  • 卸载python和numpy并使用choco重新安装
  • 带点子
  • 和conda。

似乎没有一个工作。有什么建议吗?

解决方法

有什么建议吗?

执行c:\ agent03_work \ s \ turo.venv \ bin \ python.exe时import numpy; print(numpy.__version__)可以工作吗?如果不是,则需要c:\agent03\_work\s\turo\.venv\bin\pip install numpy,并且应该对您进行排序。