简体   繁体   English

如何告诉IntelliJ IDEA在哪里找到用于sublime text 2插件开发的python包?

[英]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). 我正在开发一个sublime text 2插件,对于python开发,我选择的是带有python插件的IntelliJ IDEA(与PyCharm大致相同)。

Now IntellJ tells me it doesn't find the libraries that I import. 现在,IntellJ告诉我找不到导入的库。 That code is working in sublime text 2 as a plugin, so somehow I just need to tell IntelliJ IDEA where to look. 该代码作为插件在高级文本2中工作,因此我只需要告诉IntelliJ IDEA在哪里查看即可。 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 您需要将Python sdk添加到您的项目结构中。如果您使用的是linux python sdk路径是/usr/bin/python2.7对于Windows,这是您安装python的位置

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

and select the installation path of your Python interpreter 然后选择您的Python解释器的安装路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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