尽管我浏览了 GAMS Python API 教程,但在尝试运行 transport.py 时收到以下错误消息。
有人可以在这里帮助我吗?我正在使用 Python 3.6 和 GAMS 24.8。我猜我的系统上没有正确链接 Python 和 GAMS?!
提前致谢!
Traceback (most recent call last):
File "/Users/kaischaal/Dropbox/Python/GAMS.py", line 4, in <module>
from gams import *
File "/Users/kaischaal/anaconda/lib/python3.6/site-packages/gams/__init__.py", line 8, in <module>
from .workspace import *
ImportError: dlopen(/Users/kaischaal/anaconda/lib/python3.6/site-packages/gams/workspace.so, 2): Symbol not found: _PyClass_Type
Referenced from: /Users/kaischaal/anaconda/lib/python3.6/site-packages/gams/workspace.so
Expected in: flat namespace
in /Users/kaischaal/anaconda/lib/python3.6/site-packages/gams/workspace.so
Process finished with exit code 1