FG
💻 Software

`which python` points to the python I want, but `python` runs the wrong version

Fresh7 days ago
Mar 15, 20264274 views
Confidence Score0%
0%

Problem

I want to use python24 provided by ports, so I've installed it, and shows that the version I want is indeed selected. Running gives , and running gives me the version I want. However when I run from the shell, I get the version instead. I don't have a python alias. Here's the situation in a nutshel…

Error Output

python_select -s

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: `which python` points to the python I want, but `python` runs the wrong version

Low Risk

Try . This will tell bash to forget where it last saw the python executable.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment