Intellij Python does not import from .pydevproject

社会主义新天地 提交于 2019-12-23 06:45:10

问题


PyDev eclipse plugin creates two files a .project file and a .pydevproject file. The .pydevproject file contains all library references. 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.

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?
  3. Also how do I alter the PYTHONPATH like in eclipse? In eclipse I can set the pythonpath to a list of UNC paths. 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)

回答1:


PYTHONPATH for the additional modules can be configured in the Python SDK settings Classpath tab or directly in %CONFIG%\options\jdk.‌​table.xml file.



来源:https://stackoverflow.com/questions/15475913/intellij-python-does-not-import-from-pydevproject

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!