Python issue after updating pip and setuptools #4
Unanswered
ghost
asked this question in
Everyday usage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have encountered what I think is a bug but wanted to run it past more experienced users.
After installing python3
brew install python
And running
pip list --outdated
Using the instructions on the Homebrew documentation for python on updating
pip
andsetuptools
I ran the following commands:This resulted in many issues for my brew install of python.
Python installed aliases were replaced with executables and aliases became corrupted and running
brew test python
resulted in errors:I thought maybe running
brew unlink python && brew link python
would help:So I follow directions and run:
Now the previous executables are replaced with aliases and executables have been installed inside:
/usr/local/Cellar/[email protected]/3.8.5/bin
brew test python3
still gives me the same errors as above.Checking version for pip inside /usr/local/bin
That’s weird. It seems all of my python aliases are messed up after updating
pip
andsetuptools
using the command that Homebrew recommends.Look at this error when trying to get version of pip3 by path.
To fix the issue I try to go back to the default install without updating
pip
andsetuptools
. So, Ibrew uninstall --ignore-dependencies python && brew install python
to test my theory and voila…Everything is functioning again but I am conerned about the line in the error message:
It seems maybe the requirements aren't being updated when a user upgrades to the latest version of pip and setup tools as suggested on the homebrew python documentation.
Any ideas on how to get around this or if this is a "bug"?
Beta Was this translation helpful? Give feedback.
All reactions