我正在导入pyfmi并收到此错误消息。我正在Windows上使用Spyder(Python 3.6)。
我还下载了最新版本的Cython 0.29.13
import pyfmi
Traceback (most recent call last):
File "<ipython-input-11-df481fa81f2d>", line 1, in <module>
import pyfmi
File "C:\ProgramData\Anaconda3\lib\site-packages\pyfmi\__init__.py", line 24, in <module>
from .fmi import FMUModel, load_fmu, FMUModelME1, FMUModelME2
File "src\pyfmi\fmi.pyx", line 165, in init pyfmi.fmi
AttributeError: type object 'pyfmi.fmi.ModelBase' has no attribute '__reduce_cython__'