Windows-尝试在SublimeText3中导入python模块时出现ImportError

时间:2020-08-14 22:20:36

标签: path sublimetext3 settings python-import importerror

我正在尝试在ST3中导入熊猫,并且出现以下错误:

Traceback (most recent call last):
  File "c:\users\name\appdata\local\temp\tmpzv_2y9.py", line 2, in <module>
    import pandas as pd 
ImportError: No module named 'pandas'
[Finished in 0.6s]

我的熊猫包保存在

C:\ProgramData\Anaconda3\Lib\site-packages

为解决此问题,我尝试了here提供的解决方案。以下是我在Preference下的设置。但这没有帮助。我错过了什么?我正在使用Windows FYI。

{
"path": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
"env":{"PYTHONPATH":"C:/ProgramData/Anaconda3/lib/site-packages"},
"cmd": ["python", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}

0 个答案:

没有答案