Closed rgaufman closed 1 day ago
Did you open a new terminal / zsh session after installing anaconda? Also see https://docs.anaconda.com/reference/troubleshooting/
I did open a new terminal, yes.
I am not seeing the "Run 'conda init' before" in the above troubleshooting link, so I'm not sure how to proceed.
@rgaufman ensure your .bashrc / .zshrc is correctly set up.
export PATH=/usr/local/anaconda3/bin:$PATH
export PATH=/opt/homebrew/anaconda3/bin:$PATH
which conda
conda () {
\local cmd="${1-__missing__}"
case "$cmd" in
(activate | deactivate) __conda_activate "$@" ;;
(install | update | upgrade | remove | uninstall) __conda_exe "$@" || \return
__conda_reactivate ;;
(*) __conda_exe "$@" ;;
esac
}
Then run
conda env create -f environment.yaml
conda activate fooocus
Thank you for your reply, I already added this to my .zshrc before I created this issue:
export PATH="/opt/homebrew/anaconda3/bin:$PATH"
I'm able to run the conda command, so it's in the path. Adding the "conda () {..." stuff breaks the conda command:
$ conda env create -f environment.yaml
conda:6: command not found: __conda_exe
If I remove it, back to this:
$ conda env create -f environment.yaml
CondaValueError: prefix already exists: /opt/homebrew/anaconda3/envs/fooocus
$ conda activate fooocus
CondaError: Run 'conda init' before 'conda activate'
I always open a new terminal session whenever I make changes to ~/.zshrc
I don't know why this is happening or what to do next :(
Something is messed up in your zshrc. I'd recommend removing everything related anaconda from it and initializing again. conda init has to write the anaconda code to the zshrc in irder to work.
Nothing was messed up, I just figured it out! - conda init wasn't using .zshrc, it was using .bash_profile, I added this to my .zshrc and now got past that step:
export PATH="/opt/homebrew/anaconda3/bin:$PATH"
source ~/.bash_profile
Will report back if I get stuck, thank you :)
It worked, thank you! - Closing.
Checklist
What happened?
I have a clean installation and I'm following the steps:
I am stuck on step 5:
Any ideas?
Steps to reproduce the problem
What should have happened?
It should allow going to the next step
What browsers do you use to access Fooocus?
No response
Where are you running Fooocus?
Locally
What operating system are you using?
Mac 15.0
Console logs
Additional information
No response