kritiksoman / GIMP-ML

AI for GNU Image Manipulation Program
https://kritiksoman.github.io/GIMP-ML-Docs/index.html
MIT License
1.39k stars 126 forks source link

Error During Install #68

Open mybigbadself opened 9 months ago

mybigbadself commented 9 months ago

Windows 10 GIMP 2.99.6 Installed Python 3.11.4

Followed the instructions on the install.

After running Install.bat I get the following error.

ERROR: Could not find a version that satisfies the requirement torch==1.8.1+cpu (from versions: 2.0.0, 2.0.0+cpu, 2.0.0+cu117, 2.0.0+cu118, 2.0.1, 2.0.1+cpu, 2.0.1+cu117, 2.0.1+cu118, 2.1.0, 2.1.0+cpu, 2.1.0+cu118, 2.1.0+cu121) ERROR: No matching distribution found for torch==1.8.1+cpu ERROR: Invalid requirement: 'GIMP-ML\.' Hint: It looks like a path. File 'GIMP-ML.' does not exist.

I also have a stable version of GIMP installed 2.10.34

mybigbadself commented 9 months ago

tried on a clean install of Windows 11 and got the same error. after running install.bat.

ERROR: Could not find a version that satisfies the requirement torch==1.8.1+cpu (from versions: 2.0.0, 2.0.0+cpu, 2.0.0+cu117, 2.0.0+cu118, 2.0.1, 2.0.1+cpu, 2.0.1+cu117, 2.0.1+cu118, 2.1.0, 2.1.0+cpu, 2.1.0+cu118, 2.1.0+cu121) ERROR: No matching distribution found for torch==1.8.1+cpu ERROR: Invalid requirement: 'GIMP-ML\.' Hint: It looks like a path. File 'GIMP-ML.' does not exist. Traceback (most recent call last): File "", line 1, in File "C:\Users\mccab\Documents\GIMP-ML\gimpml__init__.py", line 1, in from .tools.kmeans import get_kmeans as kmeans File "C:\Users\mccab\Documents\GIMP-ML\gimpml\tools\kmeans.py", line 3, in import numpy as np ModuleNotFoundError: No module named 'numpy' GIMP-ML Setup Ended

DRB-Ecovium commented 7 months ago

Use Python 3.8 and it will work. image

bmmtstb commented 4 months ago

In the end, the install.bat wants to install the git project. But I struggled with the automatic version as well. It seems we should run everything from the parent directory. But just running (in the environment!) pip install . to install the setup.py works perfectly fine.