如何修复'AttributeError:类型对象'pyfmi.fmi.ModelBase'没有属性'__reduce_cython__'

时间:2019-09-18 07:47:47

标签: cython fmi

我正在导入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__'

0 个答案:

没有答案