Ich würde gerne IPython als Interpreter in Pydev Eclipse-Plugin verwenden.set ipython als Interpreter für pydev
Ich habe IPython 0.10 und Pydev 2.5.0, läuft auf Linux (opensuse).
Wenn ich in Pydev Vorlieben gehen und versuchen, den IPython Pfad zu setzen (wie auf dieser Seite erklärt: http://pydev.org/manual_101_interpreter.html), erhalte ich die Fehler folgenden
„Python stdlib nicht gefunden oder stdlib ohne .py Dateien gefunden“
Der ipython-Interpreter funktioniert gut von einem Bash-Terminal, und ich bekomme den Pfad von dem Befehl "which ipython".
Kann mir jemand helfen?
Dank!
Die interpreterInfo.py Ausgabe lautet:
python /home/softs/eclipse/plugins/org.python.pydev_2.5.0.2012040618/PySrc/interpreterInfo.py
<xml>
<version>2.7</version>
<executable>/usr/bin/python</executable>
<lib path="out">/home/softs/eclipse/plugins/org.python.pydev_2.5.0.2012040618/PySrc</lib>
<lib path="ins">/usr/local/lib64/python2.7/site-packages/scikits.timeseries-0.91.3-py2.7-linux-x86_64.egg</lib>
<lib path="ins">/usr/local/lib64/python2.7/site-packages/distribute-0.6.19-py2.7.egg</lib>
<lib path="ins">/usr/local/lib64/python2.7/site-packages/MeshPy-2011.1-py2.7-linux-x86_64.egg</lib>
<lib path="out">/data/dvp/python</lib>
<lib path="out">/home/mayet</lib>
<lib path="ins">/usr/lib/python27.zip</lib>
<lib path="ins">/usr/lib64/python2.7</lib>
<lib path="ins">/usr/lib64/python2.7/plat-linux2</lib>
<lib path="ins">/usr/lib64/python2.7/lib-tk</lib>
<lib path="ins">/usr/lib64/python2.7/lib-old</lib>
<lib path="ins">/usr/lib64/python2.7/lib-dynload</lib>
<lib path="ins">/usr/lib64/python2.7/site-packages</lib>
<lib path="ins">/usr/lib64/python2.7/site-packages/PIL</lib>
<lib path="ins">/usr/local/lib64/python2.7/site-packages</lib>
<lib path="ins">/usr/local/lib/python2.7/site-packages</lib>
<lib path="ins">/usr/lib64/python2.7/site-packages/gtk-2.0</lib>
<lib path="ins">/usr/lib/python2.7/site-packages</lib>
<lib path="ins">/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info</lib>
<lib path="ins">/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode</lib>
<forced_lib>__builtin__</forced_lib>
<forced_lib>__main__</forced_lib>
<forced_lib>_ast</forced_lib>
<forced_lib>_codecs</forced_lib>
<forced_lib>_sre</forced_lib>
<forced_lib>_symtable</forced_lib>
<forced_lib>_warnings</forced_lib>
<forced_lib>errno</forced_lib>
<forced_lib>exceptions</forced_lib>
<forced_lib>gc</forced_lib>
<forced_lib>imp</forced_lib>
<forced_lib>marshal</forced_lib>
<forced_lib>posix</forced_lib>
<forced_lib>pwd</forced_lib>
<forced_lib>signal</forced_lib>
<forced_lib>sys</forced_lib>
<forced_lib>thread</forced_lib>
<forced_lib>xxsubtype</forced_lib>
<forced_lib>zipimport</forced_lib>
</xml>Traceback (most recent call last):
File "/home/softs/eclipse/plugins/org.python.pydev_2.5.0.2012040618/PySrc/interpreterInfo.py", line 142, in <module>
raise RuntimeError('Ok, this is so that it shows the output (ugly hack for some platforms, so that it releases the output).')
RuntimeError: Ok, this is so that it shows the output (ugly hack for some platforms, so that it releases the output).
Vielen Dank für Ihre schnelle Antwort. – clement
Hinweis: Wenn dies wirklich Ihr Fall war, sollten Sie die Antwort als akzeptiert markieren :) –
Vielen Dank für Ihre schnelle Antwort. Wenn ich es gut verstehe, sollte ich nicht versuchen, Ipython als Interpreter zu setzen (weil das nicht der Fall ist), sondern einfach den IPython-Pfad in den PYTHONPATH von Pydev einfügen, dann benutzt Pydev automatisch die IPython-Konsole. Ich habe '/ usr/lib/python2.7/site-packages/IPython/'in den PYTHONPATH von Pydev eingefügt, aber ich erhalte den Fehler' PyDev console: benutze Standard-Backend (IPython nicht verfügbar) .' Das Verzeichnis enthält einige Verzeichnisse und a Viele .py und .pyc Dateien. Ich brauche nicht welche? Nochmals vielen Dank für deine Hilfe (und entschuldige mich für meinen vorherigen Post, der abgeschnitten wurde) – clement