Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyDev Eclipse Python interpreters Error: stdlib not found

Tags:

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 mac.

My python version is 2.6 and the path is "/usr/bin/python". When I enter this, and I select the items to add to the system PYTHONPATH I get the following error message:

Error: Python stdlib not found

It seems that the Python /Lib folder (which contains the standard library) was not found /selected during the instal process.

This folder (which contains files such as threading.py and traceback.py) is required for PyDev to function properly (and it must contain the actual source files, not only .pyc files) ...

So I can't tell eclipse the interpreter path! Any help would be great! (I tried reinstalling PyDev already, no luck)

Thanks!

Following Praveen's answer, My python library is in /library/python/2.6/site-packages. When I enter /usr/bin/python into the interpreter field, eclipse asks me which paths I would like to add to my System PYTHONPATH. One of the checkbox items is exactly that path. So I check it, along with the other boxes. Click ok, and I get the same error.

like image 995
labjunky Avatar asked Apr 08 '11 12:04

labjunky


1 Answers

Had the same problem. Eclipse wouldn't find all the required path using the default installed python (2.6). I downloaded python 2.7, went through the install. My new "which python" path became:

/Library/Frameworks/Python.framework/Versions/2.7/bin/python.

When I tried to set up the interpreter this time, specified this path and it went right through.

Note:

  1. Browse to /Library/Frameworks/Python.framework/Versions/2.7/bin directory
  2. Select the python interpreter that's installed. Sometimes the 'python' link doesn't exist to the current interpreter (say, python3)
like image 197
jgtaylor123 Avatar answered Sep 24 '22 18:09

jgtaylor123