Delu:sional 0 Newbie Poster

I just installed eclipse and Pydev. but I can't I can't add Python 2.7 as the interpreter for Pydev. I couldn't find the interpreter file at 'mac/usr/local/bin/' I only see /python 3.1 and some others. Is it because of I have installed 3.1 and 2.7 both? Even then I click python 3.1, but the window does not allow me to click OPEN button.

I have been looking for how to uninstall python 3.1 but can't find anything. Can I just delete the folder then all problem will be solved? please help me :'(

thanks

Dani AI

Generated

— PyDev needs the actual Python executable, not a folder or an .app bundle. On macOS the usable interpreter binaries are normally in places like /usr/bin, /usr/local/bin or inside the framework tree under /Library/Frameworks/Python.framework/Versions/<version>/bin. If the file chooser's Open button is disabled, it usually means a directory (or an app bundle) was highlighted instead of the python binary.

Run these diagnostic commands in Terminal to find available interpreters and their versions:

which -a python python2 python2.7 python3 python3.1
python --version
python2.7 --version
python3 --version
ls -l /usr/bin/python* /usr/local/bin/python* /Library/Frameworks/Python.framework/Versions/*

Then in Eclipse go to Preferences → PyDev → Interpreters → Python Interpreter → New... and point to the exact binary path returned by the commands above (for framework installs that is the bin/pythonX.Y file). After adding, accept the library/module auto-configuration PyDev prompts for, and set the desired interpreter per-project via Project → Properties → PyDev - Interpreter/Grammar.

There is no need to uninstall Python 3.x just to use 2.7 — PyDev supports multiple interpreters side-by-side. If removal is required, do not delete system files. If Python 3.1 was installed with the python.org installer the typical items to remove are the framework directory and any symlinks in /usr/local/bin; always inspect with ls before removing. See PyDev's interpreter instructions for details and the Python on macOS notes for typical install locations:

Caution: avoid removing Apple-provided Python in /usr/bin or system frameworks — that can break macOS components.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.