GithubHelp home page GithubHelp logo

Comments (7)

rgaufman avatar rgaufman commented on July 16, 2024 1

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 :)

from fooocus.

rgaufman avatar rgaufman commented on July 16, 2024 1

It worked, thank you! - Closing.

from fooocus.

mashb1t avatar mashb1t commented on July 16, 2024

Did you open a new terminal / zsh session after installing anaconda?
Also see https://docs.anaconda.com/reference/troubleshooting/

from fooocus.

rgaufman avatar rgaufman commented on July 16, 2024

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.

from fooocus.

mashb1t avatar mashb1t commented on July 16, 2024

@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

from fooocus.

rgaufman avatar rgaufman commented on July 16, 2024

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 :(

from fooocus.

mashb1t avatar mashb1t commented on July 16, 2024

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.

from fooocus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.