Colleagues, I have a rather complicated and confusing problem related to the Python language. We are not very familiar with Python yet, although I am trying to deepen my friendship with this evergreen creeping thing consisting of a head and a tail.
I have a test computer with FreeBSD 14.3. Naturally, Python version 3.11 is installed there and I do not want to change it in order to stay in the main flow.
I want to install and study the library for speech synthesis SpeakerPy. https://github.com/denisxab/speakerpy
(Why this one? There are reasons for that. Please do not start a discussion about replacing it with another one.)
Everyone says that the library synthesizes speech well. But there are problems.
Firstly, the library is documented in Russian. However, Google Translate translates everything well.
Secondly, the library is designed for Python versions up to and including 3.10. It does not want to be installed on 3.11.
I installed 3.10 at the same time as 3.11, installed venv and activated the project environment.
Next, I tried to install pytorch. It didn't work.
What am I doing wrong?
Ogogon.
I have a test computer with FreeBSD 14.3. Naturally, Python version 3.11 is installed there and I do not want to change it in order to stay in the main flow.
I want to install and study the library for speech synthesis SpeakerPy. https://github.com/denisxab/speakerpy
(Why this one? There are reasons for that. Please do not start a discussion about replacing it with another one.)
Everyone says that the library synthesizes speech well. But there are problems.
Firstly, the library is documented in Russian. However, Google Translate translates everything well.
Secondly, the library is designed for Python versions up to and including 3.10. It does not want to be installed on 3.11.
I installed 3.10 at the same time as 3.11, installed venv and activated the project environment.
Next, I tried to install pytorch. It didn't work.
Code:
ogogon@devel:~# pip3.10 install pytorch
Collecting pytorch
Using cached 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 does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found 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-9ffo3s40/pytorch_3360539b711a4397bbd5ffde88e2f555/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.
WARNING: There was an error checking the latest version of pip.
ogogon@devel:~#
What am I doing wrong?
Ogogon.