pytorch-handwriting-synthesis-toolkit icon indicating copy to clipboard operation
pytorch-handwriting-synthesis-toolkit copied to clipboard

Issues installing requirement file, torch 1.8.1 version

Open monotron-blue opened this issue 2 years ago • 1 comments

I've trying to run the project in a virtual environment, but when I try to install the requirements file a couple of errors are shown:

ERROR: Could not find a version that satisfies the requirement torch==1.8.1 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0) ERROR: No matching distribution found for torch==1.8.1

not sure if this is something with the packages, the source where they are been fetched or I might missing something.

monotron-blue avatar Nov 21 '22 03:11 monotron-blue

I have relaxed pinned versions for dependencies in the last commit: https://github.com/X-rayLaser/pytorch-handwriting-synthesis-toolkit/commit/b36353d84851e9776b9ccbf9d4f74ca0cfcbf83c

Try to pull the changes from the main branch (or just copy paste the requirements file the way it is done in the commit above) and repeat the installation steps.

If this does not work, you can additionally try to:

  • update the PIP version in your virtual environment: pip install --upgrade pip
  • try to create a virtual environment (virtualenv) using a different version of Python (I managed to succeed with Python 3.7.0 and Python 3.8.9)
  • completely remove version constraints from dependencies in requirements.txt file (but keep in mind, that this might break the code when one of the packages (that this project depends on) releases a new major version)

By the way, which version of Python do you see when you execute the interpreter from the activated virtual environment?

X-rayLaser avatar Nov 22 '22 12:11 X-rayLaser