Search code examples
pythonsublimetext3twistedsublime-text-plugin

How to make the third party library twisted of python automatically complete in sublime?


I have installed package 'Anaconda' in sublime. But it doesn't work for third library like twisted and so on...How can I make it automatically complete? Thanks in advance.


Solution

  • By default, anaconda uses the python interpreter that is in your PATH environment variable, the most important configuration option is the python_interpreter option that allow the user to use a different python interpreter, for example, one that resides in a virtual environment:

    So check your sublime3 configuration, and make sure the python interpreter is right:

    e.g.

    {
        "font_face": "Monaco",
        "font_size": 11,
        "python_interpreter": "/Users/**/venv/bin/python"
    }
    

    enter image description here

    See more details from anaconda settings.