问题
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:
- How can I force this?
- 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?
- 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