Problems Using Zsh With Catalina, Python/python3, Pip/pip3, Path, Zshrc, Etc
Solution 1:
I've experienced this issue after a clean installation of Catalina. I'm also using zsh
.
What I did wrong:
I've installed a new version of pip
by using:
sudo pip3 install --upgrade pip
as prompted. However, this will not work with Apple's python
, as the path will not be correct. Instead, sudo -H
should be used.
How I fixed pip:
Fortunately, python3 -m pip
still works as a workaround for pip3
.
Install an older version of pip
(in my case, 19.3.0
was sufficient):
sudo -H python3 -m pip install --upgrade pip==19.3.0
and then upgrade again:
sudo -H python3 -m pip install --upgrade pip
I hope this will also solve your issue.
Solution 2:
I had the same issue as you. Solved with
brew install python3
Solution 3:
I had a similar problem. You can use
rehash
in your command line to update your paths. It solved the issue for me.
Solution 4:
I solved the issue by deleting ~/Library/Python.
Solution 5:
I was also running in to this issue on a fresh install of MacOS Catalina with Kitty term emulator + ohmyzsh
.
Reading this question led me to my .zshrc
which still had the line commented
\#exportPATH=$HOME/bin:/usr/local/bin:$PATH
I removed the comment, which added the $HOME/bin to the PATH
~/.zshrc
export PATH=$HOME/bin:/usr/local/bin:$PATH
This change allowed me to successfully run the pip3
command without the traceback error.
Post a Comment for "Problems Using Zsh With Catalina, Python/python3, Pip/pip3, Path, Zshrc, Etc"