sp_tool程序包在Spyder中运行,但不在VSCode中运行

时间:2020-07-24 16:58:05

标签: python visual-studio-code ipython spyder

我可以在IPython控制台(版本5.4.1)的Spyder 3.2.6(Python 2.7)中成功运行sp_tool软件包(https://github.com/MikhailStartsev/sp_tool):

runfile('C:/Users/[...]/run_detection.py', args='--config default_parameters.conf.json', wdir='C:/Users/[...]/output')

但是当我在IPython控制台(5.4.1)中切换到VSCode 1.46.1(Python 2.7)时,我首先得到:

NameError: name 'runfile' is not defined

我改为通过运行来解决:

%run C:/[...]/run_detection.py

但是现在,我出现以下错误:

ImportError: No module named arff

有什么想法吗? Spyder和VSCode之间的什么区别可能导致此问题? 非常感谢!

0 个答案:

没有答案