PyDev Eclipse Python interpreters Error: stdlib not found

前端 未结 12 1216
太阳男子
太阳男子 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:58

    I decided to leave my MAC OS Python 2.7 as is, and instead just install Python 3.3.4. It works smoothly! :)

    1) download python 3.3.4:

    The python-3.3.4-macosx10.6.dmg is from http://python.org/download/releases/3.3.4/: downloaded "from Mac OS X 64-bit/32-bit Installer (3.3.4) for Mac OS X 10.6 and later" (My Mac OS is Mountain Lion).

    2) setup Python Interpreter and Lib:

    Go to Eclipse Preferences > Interpreter > Python Interpreter and click "Quick Auto Config". It is able to locate the Python 3.3.4, find the interpreter as /usr/local/bin/python3 (which is actually: shulow$ ls -l /usr/local/bin/python3 lrwxr-xr-x 1 root wheel 69 4 Mar 23:18 /usr/local/bin/python3 -> ../../../Library/Frameworks/Python.framework/Versions/3.3/bin/python3)

    And it also automatically find the respective libraries in /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3 which has the .py files (rather than only the .pyc and .pyo)

提交回复
热议问题