PyDev Eclipse Python interpreters Error: stdlib not found

前端 未结 12 1191
太阳男子
太阳男子 2021-02-02 10:24

I have been trying to use Eclipse 3.6 as a Python editor. I install the latest version of PyDev, and then try to set the Interpreter - Python field of the preferences, on my ma

相关标签:
12条回答
  • 2021-02-02 10:36

    @labjunky , if the .py files from the lib folder in the source tar ball are dropped into the User's site-packages folder ~/Library/Python/2.7/lib/python/site-packages[ provided it is listed in the locations by PyDev and selected] , it works too. this can be useful if the user does not have permission to modify the location in /System/Library/Frameworks/....

    0 讨论(0)
  • 2021-02-02 10:37

    I too had the error: stdlib sources not found.

    My fix was to install XCode 4.2 and then retry Eclipse's PyDev "Auto Config" method.

    No error. PyDev running OK!

    0 讨论(0)
  • 2021-02-02 10:38

    When I upgraded to Mountain Lion (10.8.2) I had this problem. The solution was to install XCode 4.5.2, then in XCode > Preferences > Components, there is an option to install the Command Line Tools. I installed them and then I was able install Interpreter.

    0 讨论(0)
  • 2021-02-02 10:41

    just found an answer to my own question, thought it might enlighten other users with similar problems. I will try it out later to see if it works.

    On SourceForge: http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4480085:

    • tim-erwin writes:

    "I downloaded the Python source release and simply dropped the /Lib folder into the /System/..../Frameworks/.../lib/python2.6/ and it works."

    • fabioz writes:

    "That's a solution (although usually what I do on Mac OS is getting a python install from python.org instead of using the default one -- not sure what you may break in Mac OS if something bad happens there while developing)."

    0 讨论(0)
  • 2021-02-02 10:54

    I found the solution of not touching macs deliverd python version, but downloading ad installing a new one (currently 3.something)

    when setting up the interpreter, point to /usr/local/bin/pyhton3

    (to find out the exact path open terminal and type: sudo -s !hittenter> your password !hittenter> cd /usr/local/bin !hittenter> ls !hittenter>) -> what this does is, showing you the content of the folder you went to. you should find the python interpreter in there.

    WARNING!!!! Do not touch or change any other python files/folders delivered with your mac.

    0 讨论(0)
  • 2021-02-02 10:54

    I had this issue setting up Jython and solved it as described here: https://stackoverflow.com/a/20002281/1915920

    0 讨论(0)
提交回复
热议问题