Search code examples
pythonintellij-ideasublimetext2sublime-text-plugin

How do I tell IntelliJ IDEA where to find python packages for sublime text 2 plugin development?


I am developing a sublime text 2 plugin and my choice for python development is IntelliJ IDEA with the python plugin (more or less the same as PyCharm).

Now IntellJ tells me it doesn't find the libraries that I import. That code is working in sublime text 2 as a plugin, so somehow I just need to tell IntelliJ IDEA where to look. Does anyone know how to specify these paths?

Missing imports for sublime plugin development

Thanks a lot.


Solution

  • You need to add Python sdk to your your Project Structure.If you are using linux python sdk path is /usr/bin/python2.7 For windows it is where you installed your python

    File -> Project Structure -> Project -> Project SDK -> new
    

    and select the installation path of your Python interpreter