简体   繁体   中英

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?

缺少用于高级插件开发的导入

Thanks a lot.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM