Cannot get gdxcc module in the right path (Python API)
Posted: Wed Oct 12, 2022 12:58 am
Hello,
I'm trying to import gams module into my python program and got the error:
I know this probably has something to do with getting this module on the right path because when I pip install gdxcc, the requirement is already satisfied and the location of the gdxcc module is at:
However, the code calls for gdxcc at:
I'd appreciate any help to resolve this issue. I tried everything I could find on the internet for hours and nothing worked. Thank you so much in advance!
I'm trying to import gams module into my python program and got the error:
Code: Select all
ModuleNotFoundError: No module named '_gdxcc'
Code: Select all
Requirement already satisfied: gdxcc in c:\users\<name>\appdata\roaming\python\python39\site-packages\gdxcc-8-py3.9.egg (8)
Code: Select all
File "C:\Users\<name>\AppData\Roaming\Python\Python39\site-packages\gams2numpy-0.1-py3.9.egg\gdxcc.py", line 11, in <module>
import _gdxcc
File "C:\Program Files\JetBrains\PyCharm 2019.3.4\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named '_gdxcc'