Skip to content

Commit dbc8fc7

Browse files
Add instructions on how to install alongside pyenv (#393)
Like probably many others, I have a lot of different virtualenvs, one for each project. Most of them are handled by `pyenv`. After installing according to these instructions I had issues with ´pyenv`and `miniconda` fighting over the $PATH of my system. But then I stumbled upon this nice solution on SO: https://stackoverflow.com/a/73139031 , upon which I have based my suggested changes. It runs perfectly on my M1 setup, with the anaconda setup as a virtual environment handled by pyenv. Feel free to incorporate these instructions as you see fit. Thanks a million for all your hard work.
1 parent 751283a commit dbc8fc7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README-Mac-MPS.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,34 @@ While that is downloading, open Terminal and run the following commands one at a
3232
# install brew (and Xcode command line tools):
3333
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
3434
35+
#
36+
# Now there are two different routes to get the Python (miniconda) environment up and running:
37+
# 1. Alongside pyenv
38+
# 2. No pyenv
39+
#
40+
# If you don't know what we are talking about, choose 2.
41+
#
42+
# NOW EITHER DO
43+
# 1. Installing alongside pyenv
44+
45+
brew install pyenv-virtualenv # you might have this from before, no problem
46+
pyenv install anaconda3-latest
47+
pyenv virtualenv anaconda3-latest lstein-stable-diffusion
48+
pyenv activate lstein-stable-diffusion
49+
50+
# OR,
51+
# 2. Installing standalone
3552
# install python 3, git, cmake, protobuf:
3653
brew install cmake protobuf rust
3754
3855
# install miniconda (M1 arm64 version):
3956
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o Miniconda3-latest-MacOSX-arm64.sh
4057
/bin/bash Miniconda3-latest-MacOSX-arm64.sh
4158
59+
60+
# EITHER WAY,
61+
# continue from here
62+
4263
# clone the repo
4364
git clone https://github.com/lstein/stable-diffusion.git
4465
cd stable-diffusion

0 commit comments

Comments
 (0)