Comments (7)
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.
It worked, thank you! - Closing.
from fooocus.
Did you open a new terminal / zsh session after installing anaconda?
Also see https://docs.anaconda.com/reference/troubleshooting/
from fooocus.
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.
@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.
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.
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)
- [Feature Request]: Container image should include models instead of downloading them at startup HOT 2
- [Bug]: launcher doesnt start with 390 driver HOT 1
- [Bug]: Error image prompt "Error Unexpected token '<', " <!DOCTYPE "... is not valid JSON" HOT 5
- [Feature Request]: upscaler model info metadata HOT 2
- [Bug]: clip-skip 1 noisy HOT 5
- [Bug]: Error in API; "AttributeError: 'dict' object has no attribute 'replace'" HOT 3
- [Bug]: docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]] - on Macbook Pro with M3 Max HOT 1
- [Bug]: Refiner SD 1.5 NSFW models do not work at all. Censured? HOT 1
- Perfect Seed Number [Bug]: HOT 2
- [Bug]: Faceswap is not working. HOT 2
- [Bug]: Fooocus crashes on launch HOT 2
- [Feature Request]: Can you add support for Kolors? HOT 1
- [Feature Request]: FreeU parameters HOT 1
- [Bug]: ROCm Fooocus doesn't garbage collect allocated VRAM HOT 12
- Image Prompt and Inpaint HOT 1
- [Bug]: CUDNN_STATUS_MAPPING_ERROR HOT 1
- [Feature Request]: Allow image generation without saving output (previews only mode) HOT 1
- [Feature Request]: hiresfix/Upscale instantly HOT 2
- [Feature Request]: calc hash - again and again HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fooocus.