Why can't I change my pip3 from the built in to the MacPort-version?
0
votes
1
answer
142
views
Here is a terminal session:
db@air ~ % port select --list pip3
Available versions for pip3:
none
pip3-apple (active)
pip311
db@air ~ % sudo port select --set pip3 pip311
Selecting 'pip311' for 'pip3' succeeded. 'pip311' is now active.
db@air ~ % port select --list pip3
Available versions for pip3:
none
pip3-apple
pip311 (active)
db@air ~ % which pip3
/Users/db/Library/Python/3.9/bin/pip3
db@air ~ % which -a pip3
/Users/db/Library/Python/3.9/bin/pip3
/opt/local/bin/pip3
/usr/bin/pip3
db@air ~ % echo $PATH
/Users/db/Library/Python/3.11/bin:/Users/db/Library/Python/3.9/bin:/Users/db/Library/Python/3.8/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
As you can see I have two
pip3
installed. Changing from the built in to MacPorts is successful (no error message) and the listing is updated accordingly, but which
still says that pip3
points to the built in from Python 3.9 rather than Python 3.11.
What is going on here? How do I make pip from Python 3.11 the "active" one?
Asked by d-b
(2047 rep)
Aug 12, 2023, 01:53 PM
Last activity: Aug 14, 2023, 01:33 PM
Last activity: Aug 14, 2023, 01:33 PM