vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 73
声望: 0

第一次用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
加入于:
帖子: 1929
声望: 87

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

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