掘金社区

为什么我在pycharm上跑策略会出bug而在掘金终端上可以跑?Pinned highlighted

186227***913 发表在问题反馈 2020-04-08 10:20:21

问题反馈
340
1
0

为什么我在pycharm上跑策略会出bug而在掘金终端上可以跑?
C:\Users\lenovo\PycharmProjects\untitled\venv\Scripts\python.exe E:/毕设/策略集/多因子选股(股票).py
Traceback (most recent call last):
File "E:/毕设/策略集/多因子选股(股票).py", line 184, in <module>
backtest_slippage_ratio=0.0001)
File "C:\Users\lenovo\PycharmProjects\untitled\venv\lib\site-packages\gm\api\basic.py", line 336, in run
fmodule = import_module(filename)
File "C:\vnstudio\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'main'

Process finished with exit code 1

评论: 1

Looks like your connection to 掘金量化社区 - 量化交易者的策略交流学习社区 was lost, please wait while we try to reconnect.