News for hackers. Stuff that matters.
Re:Run Stable Diffusion on Your M1 Mac’s GPU by philsnow on Friday September 02, 2022 @01:32PM (#32693465)
To get past `pip install -r requirements` I had to muck around with CFLAGS/LDFLAGS because I guess maybe on your system /opt/homebrew/opt/openssl is a symlink to something? On mine it doesn't exist, I just have /opt/homebrew/opt/[email protected] symlinked to /opt/Cellar/somewhere.

The command that finally worked for me:

  python3 -m venv venv
  . venv/bin/activate
  CFLAGS="-I /opt/homebrew/opt/[email protected]/include" LDFLAGS="-L /opt/homebrew/opt/[email protected]/lib -L/opt/homebrew/Cellar/[email protected]/1.1.1q/lib -lssl -lcrypto" PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig" GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 pip install -r requirements.txt

There are no comments on this comment yet.