I am using a Catalina macOS. I previously was able to work with my python installations with ease on this system. But today after updating other packages, such as wget and julia, I have encountered these errors zsh: command not found: python3.8
on my terminal. Following suggestions on these links I have tried to modify the PATH and zshrc but none of these approaches enables me to solve my problem.
I would be grateful if you can share your suggestions on how to deal with this issue.
Here are some of the outputs of my system.
zshrc:
vi ~/.zshrc
alias python=/usr/local/bin/python3.8
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/shasa/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/shasa/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/shasa/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/shasa/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
python:
which python
python: aliased to /usr/local/bin/python3.8
PATH:
echo $PATH
/Users/shasa/anaconda3/bin:/Users/shasa/anaconda3/condabin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin
Edit 1: In /usr/local/bin/
, I can see that python3@, python3.9@ and python3.8@* are present. Do you think the extra * near python3.8@ can cause this problem? If yes, how can resolve that?