InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Installation fails on Windows 10 regarding Python versions

Open Helge666 opened this issue 3 years ago • 6 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Windows

GPU

cuda

VRAM

12

What happened?

Collecting transformers==4.25.* Using cached transformers-4.25.1-py3-none-any.whl (5.8 MB) ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5; 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11 ERROR: Could not find a version that satisfies the requirement torch==1.12.1 (from versions: none) ERROR: No matching distribution found for torch==1.12.1

[notice] A new release of pip available: 22.3 -> 22.3.1 [notice] To update, run: python.exe -m pip install --upgrade pip Requirements installation failed. See above for errors and check https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/#troubleshooting for potential solutions. The installer will exit now.

Screenshots

No response

Additional context

automatic1111 is installed on this system, and I don't want to break it by manually trying to install packages. The provided error message (see above) is less than instructive w/regards to correcting the problem.

I did try: python.exe -m pip install --upgrade pip which results in:

Requirement already satisfied: pip in c:\users\helge\appdata\local\programs\python\python311\lib\site-packages (22.3.1)

Contact Details

[email protected]

Helge666 avatar Dec 15 '22 10:12 Helge666

The log is pretty clear in stating that the python you have is below 3.7, while only Python 3.9+ is supported by InvokeAI.

Lets find out if you really have the Python so old. Open the terminal the same way you used for installation and run python -V

Barafu avatar Dec 15 '22 10:12 Barafu

It looks like you may have Python 3.11. You need Python 3.10 on Windows to install torch.

You can have multiple versions of Python installed, and you can also install modules in a separate venv to isolate it from Automatic1111 (which should also have its own venv).

wywywywy avatar Dec 15 '22 11:12 wywywywy

Or maybe just use the binary installer

wywywywy avatar Dec 15 '22 11:12 wywywywy

I'm running into the same error, should I uninstall Python 3.11 and install 3.10? or how do I get it to detect 3.10? or use the binary installer?

patrickmac110 avatar Dec 17 '22 03:12 patrickmac110

The log is pretty clear in stating that the python you have is below 3.7, while only Python 3.9+ is supported by InvokeAI.

Lets find out if you really have the Python so old. Open the terminal the same way you used for installation and run python -V

Important, it´s not working with Python 3.11, as I understand it because it doesn´t have pythorch.

FrederikSchack avatar Dec 17 '22 18:12 FrederikSchack

uninstalling python11 fixed the issue for me

patrickmac110 avatar Dec 18 '22 23:12 patrickmac110

There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.

github-actions[bot] avatar Mar 14 '23 06:03 github-actions[bot]