InvokeAI
InvokeAI copied to clipboard
[bug]: InvokeAI sees the wrong version of python
Is there an existing issue for this?
- [X] I have searched the existing issues
OS
macOS
GPU
amd
VRAM
No response
What happened?
I wanted to upgrade invokeai, following the instructions: https://invoke-ai.github.io/InvokeAI/installation/010_INSTALL_AUTOMATED/#updating-to-newer-versions
It complains that my python version isn't supported, while I clearly have 3.9.6.
See pasted console.
Screenshots
No response
Additional context
hazout@f4d48896053f invokeai % python --version
Python 3.9.6
hazout@f4d48896053f invokeai % ./invoke.sh
Do you want to generate images using the
1. command-line
2. browser-based UI
3. open the developer console
Please enter 1, 2, or 3: 3
Developer Console:
Python 3.9.6
Press ^D to exit
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(InvokeAI) hazout@f4d48896053f ~/invokeai> pip install InvokeAI --upgrade
ERROR: Ignored the following versions that require a different python version: 2.2.4.5 Requires-Python <3.11,>=3.9; 2.2.4.6 Requires-Python <3.11,>=3.9; 2.2.4.7 Requires-Python <3.11,>=3.9; 2.2.5 Requires-Python <3.11,>=3.9; 2.3.0 Requires-Python <3.11,>=3.9; 2.3.0a0 Requires-Python <3.11,>=3.9; 2.3.0a1 Requires-Python <3.11,>=3.9; 2.3.0a2 Requires-Python <3.11,>=3.9; 2.3.0a3 Requires-Python <3.11,>=3.9; 2.3.0rc3 Requires-Python <3.11,>=3.9; 2.3.0rc4 Requires-Python <3.11,>=3.9; 2.3.0rc5 Requires-Python <3.11,>=3.9; 2.3.0rc6 Requires-Python <3.11,>=3.9; 2.3.0rc7 Requires-Python <3.11,>=3.9
ERROR: Could not find a version that satisfies the requirement InvokeAI (from versions: none)
ERROR: No matching distribution found for InvokeAI
Contact Details
No response
you could try pip install --use-pep517 --upgrade InvokeAI
Please also execute python3 -VV from the developer console, to make sure that the version in the InvokeAI venv is the same as displayed before it is activated.
Same thing
hazout@f4d48896053f invokeai % ./invoke.sh
Do you want to generate images using the
1. command-line
2. browser-based UI
3. open the developer console
Please enter 1, 2, or 3: 3
Developer Console:
Python 3.9.6
Press ^D to exit
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(InvokeAI) hazout@f4d48896053f ~/invokeai> python3 -VV
Python 3.9.6 (default, Oct 18 2022, 12:41:40)
[Clang 14.0.0 (clang-1400.0.29.202)]
(InvokeAI) hazout@f4d48896053f ~/invokeai> python -VV
Python 3.9.6 (default, Oct 18 2022, 12:41:40)
[Clang 14.0.0 (clang-1400.0.29.202)]
(InvokeAI) hazout@f4d48896053f ~/invokeai> pip install --use-pep517 --upgrade InvokeAI
ERROR: Ignored the following versions that require a different python version: 2.2.4.5 Requires-Python <3.11,>=3.9; 2.2.4.6 Requires-Python <3.11,>=3.9; 2.2.4.7 Requires-Python <3.11,>=3.9; 2.2.5 Requires-Python <3.11,>=3.9; 2.3.0 Requires-Python <3.11,>=3.9; 2.3.0a0 Requires-Python <3.11,>=3.9; 2.3.0a1 Requires-Python <3.11,>=3.9; 2.3.0a2 Requires-Python <3.11,>=3.9; 2.3.0a3 Requires-Python <3.11,>=3.9; 2.3.0rc3 Requires-Python <3.11,>=3.9; 2.3.0rc4 Requires-Python <3.11,>=3.9; 2.3.0rc5 Requires-Python <3.11,>=3.9; 2.3.0rc6 Requires-Python <3.11,>=3.9; 2.3.0rc7 Requires-Python <3.11,>=3.9
ERROR: Could not find a version that satisfies the requirement InvokeAI (from versions: none)
ERROR: No matching distribution found for InvokeAI
[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
hazout@f4d48896053f invokeai %
Here is another hint, when running pip debug from the developer console I see it uses 3.11:
(InvokeAI) hazout@f4d48896053f ~/invokeai> pip debug
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 22.3.1 from /Users/hazout/invokeai/.venv/lib/python3.11/site-packages/pip (python 3.11)
sys.version: 3.11.2 (main, Feb 13 2023, 03:31:04) [Clang 14.0.0 (clang-1400.0.29.202)]
sys.executable: /Users/hazout/invokeai/.venv/bin/python3.11
(I am reinstalling everything. Both python and invokeai)
I could recommend to use pyenv (using it myself, installed via brew), which can help avoid problems like this (where your pip command is somehow linked to another python version than the active one).
But what should have worked in this case would be python -m pip install --use-pep517 --upgrade InvokeAI to ensure that the right version of pip is getting used.
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.
Actually my original install was with pyenv and I suspected it caused the issues. With my fresh install I used vanilla python
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.