4

I'm using the plugin for Python development in Sublime Text 3 Anaconda.

Everything works fine, but now that I have a django project, I want to also take advantage of Anaconda's features like goto definition.

Sadly, I can't get it to work. I tried adding paths to my project settings with no luck:

"settings": {
"python_interpreter": "C:/Users/user/virtualenvs/example/Scripts/python",
"extra_paths":
[
    "C:/Users/user/virtualenvs/example/Lib",
    "C:/Users/user/virtualenvs/example/Lib/site-packages/django"
]
}

Do you know how to overcome this problem?

4

1 回答 1

0

我在 MacOSX 上遇到了这个问题。

我已将解释器设置为我的 Django 项目的 virtualenv 中的解释器。我在想这就是他们所需要的。而是将其设置为 Sublime text 正在使用的 python 解释器。(在我的情况下,它是系统 python)

于 2014-05-05T00:48:40.170 回答