Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2022 20:16:27 +0300
From:      Gleb Popov <arrowd@freebsd.org>
To:        Mario Marietto <marietto2008@gmail.com>
Cc:        ports@freebsd.org
Subject:   =?UTF-8?Q?Re=3A_The_installation_of_=E2=80=9CStable_Diffusion_web_UI?= =?UTF-8?Q?=E2=80=9D_natively_on_FreeBSD_fails_because_can=E2=80=99t_install_torch_?= =?UTF-8?Q?and_torchvision?=
Message-ID:  <CALH631kVFCWLz1mjMSVrwN_Y8sFfnJzBm6MRG5GKgLPxAasNOA@mail.gmail.com>
In-Reply-To: <CA%2B1FSijNZ=_9ODtCOs_P-2No=hMbTZtRAekLfCgHmRPxpTmxRg@mail.gmail.com>
References:  <CA%2B1FSihJdXHeHL1pUD3SB6vujhG0M1-9wAqeFwjCS8r4syu7mQ@mail.gmail.com> <CA%2B1FSijaF-W8PJo9GtK0S-4BFtSBhD6FjbPu-ZJLBwQ%2Bcymoew@mail.gmail.com> <CAFYkXjn2deM--tyU9Mpi-%2BiM0ALyePhEDGt9LRY0QW8gJ-3Smg@mail.gmail.com> <CAFYkXjmzrLr2x-DKx%2BY88191fOVQ0EL6rtHiSGP4QMV4VRe=sA@mail.gmail.com> <CAFYkXjm1NayM7EMps8GiqdY5a_qCf=oFcXw9GwVOGJ6rvcG=og@mail.gmail.com> <CA%2B1FSijECrDqN%2BYTat0nzr3FBkCfL6ctv8_xkhqoxtQh9rjeFQ@mail.gmail.com> <CAFYkXjmXCwaV8_6j2n82Pc7AH1DFVFO4ZDU4hpn%2B_=EP479pFA@mail.gmail.com> <CA%2B1FSijNZ=_9ODtCOs_P-2No=hMbTZtRAekLfCgHmRPxpTmxRg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 20, 2022 at 12:09 AM Mario Marietto <marietto2008@gmail.com> wr=
ote:
>
> I tried to do something like this :
>
> (venv) [marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ python=
3 -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 insta=
ll' method, because it doe
> s not have a 'pyproject.toml' and the 'wheel' package is not installed. p=
ip 23.1 will enforce this b
> ehaviour change. A possible replacement is to enable the '--use-pep517' o=
ption. 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
>
>  =C3=97 Running setup.py install for pytorch did not run successfully.
>  =E2=94=82 exit code: 1
>  =E2=95=B0=E2=94=80> [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_628b1eae21ac41e48637a8e326=
2676de/setup.py", line 11,
> in <module>
>          raise Exception(message)
>      Exception: You tried to install "pytorch". The package named for PyT=
orch is "torch"
>      [end of output]
>
>  note: This error originates from a subprocess, and is likely not a probl=
em with pip.
> error: legacy-install-failure
>
> =C3=97 Encountered error while trying to install package.
> =E2=95=B0=E2=94=80> 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".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALH631kVFCWLz1mjMSVrwN_Y8sFfnJzBm6MRG5GKgLPxAasNOA>