简体   繁体   English

Intellij Python 不会从 .pydevproject 导入

[英]Intellij Python does not import from .pydevproject

PyDev eclipse plugin creates two files a .project file and a .pydevproject file. PyDev eclipse 插件创建两个文件,一个.project文件和一个.pydevproject文件。 The .pydevproject file contains all library references. .pydevproject文件包含所有库引用。 Basically I list all my dependencies as基本上我将所有依赖项列为

....
<path>\\basedir\nose\1.1.2-py27\lib</path>
<path>\\basedir\jenkinsapi\0.1.9\lib\jenkinsapi-0.1.9-py2.7.egg</path>
....

Unfortunately Intellij won't import these libraries from .pydevproject.不幸的是,Intellij 不会从 .pydevproject 导入这些库。

Question:问题:

  1. How can I force this?我怎么能强迫这个?
  2. I have the dependencies as based strings and I can hand type them for IntelliJ but which file do I have to edit and where do I put this?我有基于字符串的依赖项,我可以为 IntelliJ 手动输入它们,但是我必须编辑哪个文件以及我把它放在哪里?
  3. Also how do I alter the PYTHONPATH like in eclipse?另外我如何像在eclipse中一样改变PYTHONPATH? In eclipse I can set the pythonpath to a list of UNC paths.在 Eclipse 中,我可以将 pythonpath 设置为 UNC 路径列表。 Unfortunately I cannot* use the IntelliJ UI to choose a Python Intepreter and rely on Intellij defaulting mechanism to alter the paths (It is because my python is on a network share and relies on some native windows file system magic to workout where the bin files are. I would rather give IntelliJ a list of paths that make up the python interpreter)不幸的是,我不能*使用 IntelliJ UI 来选择 Python Intepreter 并依靠 Intellij 默认机制来改变路径(这是因为我的 Python 位于网络共享上,并且依赖于一些本机 Windows 文件系统魔法来锻炼 bin 文件所在的位置。我宁愿给 IntelliJ 一个组成 python 解释器的路径列表)

可以在Python SDK 设置Classpath选项卡中或直接在%CONFIG% \\options\\jdk.‌​table.xml文件中配置附加模块的PYTHONPATH

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

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