kivy: Kivy won't install on Python 3.11.0
Kivy won’t install in a venv created by Python 3.11.0 (released yesterday).
(venv_3.11.0) C:\Users\abcde\Python>python -m pip install "kivy[base]" kivy_examples
Collecting kivy[base]
Downloading Kivy-2.1.0.tar.gz (23.8 MB)
---------------------------------------- 23.8/23.8 MB 3.9 MB/s eta 0:00:00
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
Collecting setuptools
Using cached setuptools-65.5.0-py3-none-any.whl (1.2 MB)
Collecting wheel
Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting cython!=0.27,!=0.27.2,<=0.29.28,>=0.24
Downloading Cython-0.29.28-py2.py3-none-any.whl (983 kB)
-------------------------------------- 983.8/983.8 kB 3.7 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement kivy_deps.gstreamer_dev~=0.3.3 (from versions: none)
ERROR: No matching distribution found for kivy_deps.gstreamer_dev~=0.3.3
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 28
- Comments: 35 (4 by maintainers)
FYI:
PRE-RELEASE VERSION NOW AVAILABLE: A pre-release
2.2.0.dev0
version is now available viaPyPi
:NIGHTLY WHEELS:
Even if we did not released Kivy 2.2.0 yet (and a new release might not happen soon, as there’s still some work to do), there are nighly wheels available with Python 3.11 support. This is also a nice way to help us to test the latest cutting-edge features, bug fixes, and improvements.
From Kivy Docs: Nightly & pre-release wheels:
I will update this issue when we will land in RC phase for 2.2.0 😀
have you solved this problem
I got it working with python 3.11 by installed the latest cutting-edge:
python -m pip install "kivy[base] @ https://github.com/kivy/kivy/archive/master.zip"
Same here. Had to go back to 3.10.4 for now.
Current status (I will update this comment to keep track about it):
Same here
Temporary resolution
python -m pip install kivy --pre --no-deps --index-url https://kivy.org/downloads/simple/ python -m pip install “kivy[base]” --pre --extra-index-url https://kivy.org/downloads/simple/
still not working.
The issue on the Pi is different, and probably because Cython doesn’t seem to be available (https://www.piwheels.org/project/cython/).
Same here
me too
Okay, so for those who are still struggling to install Kivy. I have an additional update for you all. If you have any pervious python versions on your computer you will need to uninstall and install the newer version all over again. The reason the error occurs is because when you go to install Kivy the system does not know which one to use. Therefore cause all of the errors above this. Version 3.12 is not supported but 3.11 is supported as stated above. So, to assure there are no errors you need to have only one version installed onto your computer. This comment will save you 2 hours of debugging.
Python major releases are done around October/November; so unsure if that counts as almost released
For anyone using poetry this worked for me