VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 106
声望: 2

第一次用vs code ,现在运行任何文体都出现如此错误,跟群里提问,说是路径问题,求问群主,这怎么彻底解决,我在同个电脑用py cha r m没有任何问题

[Running] python -u "/Users/wangye2018/workspace/github/vnpy/examples/DataService/JDDataService/downloadData.py"

Failed to import strategy file strategyAtrRsi:
Traceback (most recent call last):
File "/Users/wangye2018/anaconda/lib/python2.7/site-packages/vnpy/trader/app/ctaStrategy/strategy/init.py", line 20, in loadStrategyModule
module = importlib.import_module(moduleName)
File "/Users/wangye2018/anaconda/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)

ImportError: No module named strategyAtrRsi

Failed to import strategy file strategyDualThrust2:
Traceback (most recent call last):
File "/Users/wangye2018/anaconda/lib/python2.7/site-packages/vnpy/trader/app/ctaStrategy/strategy/init.py", line 20, in loadStrategyModule
module = importlib.import_module(moduleName)
File "/Users/wangye2018/anaconda/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)

ImportError: No module named strategyDualThrust2

Failed to import strategy file strategytick:
Traceback (most recent call last):
File "/Users/wangye2018/anaconda/lib/python2.7/site-packages/vnpy/trader/app/ctaStrategy/strategy/init.py", line 20, in loadStrategyModule
module = importlib.import_module(moduleName)
File "/Users/wangye

Administrator
avatar
加入于:
帖子: 4547
声望: 325

你的电脑是否安装了多个Python环境,那么要在VSCode的项目配置里选择下要用的Python虚拟机exe

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】