我的问题和这里的一样。
Ray Speth 发表了评论,但该帖子的 OP 从未回复,所以我希望 Ray 也许可以帮助我。
我安装了 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__'