Re:_The_installation_of_“Stable_Diffusion_web_UI ”_natively_on_FreeBSD_fails_because_can’t_install_torch_ and_torchvision
Date: Mon, 21 Nov 2022 17:16:27 UTC
On Sun, Nov 20, 2022 at 12:09 AM Mario Marietto <marietto2008@gmail.com> wrote: > > I tried to do something like this : > > (venv) [marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ python3 -m pip install pytorch > Collecting pytorch > Downloading pytorch-1.0.2.tar.gz (689 bytes) > Preparing metadata (setup.py) ... done > Installing collected packages: pytorch > DEPRECATION: pytorch is being installed using the legacy 'setup.py install' method, because it doe > s not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this b > ehaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be fo > und at https://github.com/pypa/pip/issues/8559 > Running setup.py install for pytorch ... error > error: subprocess-exited-with-error > > × Running setup.py install for pytorch did not run successfully. > │ exit code: 1 > ╰─> [6 lines of output] > Traceback (most recent call last): > File "<string>", line 2, in <module> > File "<pip-setuptools-caller>", line 34, in <module> > File "/tmp/pip-install-yfgsmj5x/pytorch_628b1eae21ac41e48637a8e3262676de/setup.py", line 11, > in <module> > raise Exception(message) > Exception: You tried to install "pytorch". The package named for PyTorch is "torch" > [end of output] > > note: This error originates from a subprocess, and is likely not a problem with pip. > error: legacy-install-failure > > × Encountered error while trying to install package. > ╰─> pytorch > > note: This is an issue with the package mentioned above, not pip. > hint: See above for output from the failure. > Mario. Well, the error is clear - you should install "torch" instead of "mytorch".