Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/348.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 模块对象没有属性[CANTERA]_Python_Cantera - Fatal编程技术网

Python 模块对象没有属性[CANTERA]

Python 模块对象没有属性[CANTERA],python,cantera,Python,Cantera,我一直在尝试坎特拉最简单的基础知识。 我正在使用安装在CAE Linux(Xubuntu 12.04)上的Cantera 2.2.1和iPython 我首先输入: import cantera as ct 然后我试着制造一种气体: gas = ct.Solution('gri30.xml') 这只是一个模仿教程。然而,这似乎根本不起作用。我得到的是 AttributeError: 'module' object has no attribute 'Solution' 我想知道这一切背后的原

我一直在尝试坎特拉最简单的基础知识。 我正在使用安装在CAE Linux(Xubuntu 12.04)上的Cantera 2.2.1和iPython

我首先输入:

import cantera as ct
然后我试着制造一种气体:

gas = ct.Solution('gri30.xml')
这只是一个模仿教程。然而,这似乎根本不起作用。我得到的是

AttributeError: 'module' object has no attribute 'Solution'
我想知道这一切背后的原因是什么