我正在尝试使用openmdao。我已经按照openmdao网站上的说明进行了操作,但是当我运行testflow时,会得到消息告诉我它失败了。我正在运行Windows 10。对于我做错了什么,有什么建议吗?
我收到以下消息:
Traceback (most recent call last):
File "c:\python27\lib\site-packages\testflo\discover.py", line 130, in _module_iter
fname, mod = get_module(filename)
File "c:\python27\lib\site-packages\testflo\util.py", line 320, in get_module
__import__(modpath)
File "C:\...\WISDEM-Turbine_CostsSE-0.1-1-gf5522be\WISDEM-Turbine_CostsSE-f5522be\src\test\test_Turbine_CostsSE.py", line 12, in <module>
import numpy as np
ImportError: No module named numpy
Traceback (most recent call last):
File "c:\python27\lib\site-packages\testflo\discover.py", line 130, in _module_iter
fname, mod = get_module(filename)
File "c:\python27\lib\site-packages\testflo\util.py", line 320, in get_module
__import__(modpath)
File "C:\... \NREL_programs\WISDEM-Turbine_CostsSE-0.1-1-gf5522be\WISDEM-Turbine_CostsSE-f5522be\src\test\test_Turbine_CostsSE_gradients.py", line 12, in <module>
from commonse.utilities import check_gradient_unit_test
ImportError: No module named commonse.utilities
The following tests failed:
C:\...\WISDEM-Turbine_CostsSE-0.1-1-gf5522be\WISDEM-Turbine_CostsSE-f5522be\src\test\test_Turbine_CostsSE.py
C:\...\WISDEM-Turbine_CostsSE-0.1-1-gf5522be\WISDEM-Turbine_CostsSE-f5522be\src\test\test_Turbine_CostsSE_gradients.py传递:0失败:2跳过:0
发布于 2017-02-11 08:01:30
ImportError: No module named numpy
看起来你还没有安装numpy。你也需要scipy。
https://stackoverflow.com/questions/42170510
复制相似问题