我的问题和这里的一样。
Module object has no attribute [CANTERA]
雷·斯佩思评论道,但那篇文章的运作没有回应,所以我希望雷能帮我解决这个问题。
我安装了Cantera,并做了一个气体,做了以下工作
import cantera as ct
gas1 = ct.Solution('gri30.xml')我得到了错误
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Solution'我按照注释的建议做了,得到了以下输出
print(ct.__file__)
/usr/local/lib/python2.7/site-packages/cantera/__init__.py
print(ct.__version__)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute '__version__'发布于 2018-12-17 21:09:01
https://stackoverflow.com/questions/53421188
复制相似问题