black-forest-labs / flux

Official inference repo for FLUX.1 models
Apache License 2.0
14.51k stars 1.05k forks source link

Windows tips for Local Install #99

Open MV10 opened 1 month ago

MV10 commented 1 month ago

The README shows this command: source .venv/bin/activate

It would be helpful to suggest that Windows users run the commands from git-bash (which will provide the source command).

More importantly, Python on Windows will create .venv/Source/activate (even when invoked from git-bash) rather than a bin directory.

o-bardiuk commented 1 month ago

Hi, I entered D:\ML\Flux>.venv\Scripts\activate.bat and got (.venv) D:\ML\Flux> Is that ok? Then I paste pip install -e '.[all]' I get

ERROR: '.[all]' is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
WARNING: You are using pip version 21.2.3; however, version 24.2 is available.
You should consider upgrading via the 'D:\ML\Flux\.venv\Scripts\python.exe -m pip install --upgrade pip' command.

GitBash helped 👌

Obtaining file:///D:/ML/Flux
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting safetensors

~What do I do next?~ Fuck this shit.