I have installed every necessary code in Python from Kivy, but the last one I need which one is python -m pip install kivy gets me an error like this:
ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I use windows 10, please help!
Oddthinking
24.2k19 gold badges83 silver badges121 bronze badges
asked Dec 1, 2019 at 11:51
19
This worked for me:
matham commented 15 days ago
We are not likely to release a 1.11.1 version for 3.8 to pypi. However, you can install kivy master using:
pip install kivy[base] kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/
eyllanesc
234k19 gold badges166 silver badges238 bronze badges
answered Dec 15, 2019 at 18:02
1
Try using pip install kivy==2.0.0rc2
or pip install kivy==2.0.0rc1
The command: pip install kivy==2.0.0rc2
Works with Windows 10 Pro
and Python 3.8.3
And I test it with this code:
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text= " Hello Kivy World ")
TestApp().run()
Ophir Carmi
2,6511 gold badge23 silver badges42 bronze badges
answered Sep 2, 2020 at 21:46
1
This works in macOS Catalina 10.15.6 with python 3.8.0+
pip install kivy==2.0.0rc2
answered Sep 10, 2020 at 5:28
FGrungeFGrunge
461 silver badge4 bronze badges
If you are using conda environment:
conda install -c conda-forge kivy
works in python 3.8
answered Nov 19, 2020 at 10:07
karenkaren
8221 gold badge6 silver badges22 bronze badges
I am windows 10, with 3.8.2
seems pip install kivy==2.0.0rc2 worked. At least it installed.
time to tell if I can develop with it using 3.8.2
answered Sep 11, 2020 at 21:15
I have installed every necessary code in Python from Kivy, but the last one I need which one is python -m pip install kivy gets me an error like this:
ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I use windows 10, please help!
Oddthinking
24.2k19 gold badges83 silver badges121 bronze badges
asked Dec 1, 2019 at 11:51
19
This worked for me:
matham commented 15 days ago
We are not likely to release a 1.11.1 version for 3.8 to pypi. However, you can install kivy master using:
pip install kivy[base] kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/
eyllanesc
234k19 gold badges166 silver badges238 bronze badges
answered Dec 15, 2019 at 18:02
1
Try using pip install kivy==2.0.0rc2
or pip install kivy==2.0.0rc1
The command: pip install kivy==2.0.0rc2
Works with Windows 10 Pro
and Python 3.8.3
And I test it with this code:
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text= " Hello Kivy World ")
TestApp().run()
Ophir Carmi
2,6511 gold badge23 silver badges42 bronze badges
answered Sep 2, 2020 at 21:46
1
This works in macOS Catalina 10.15.6 with python 3.8.0+
pip install kivy==2.0.0rc2
answered Sep 10, 2020 at 5:28
FGrungeFGrunge
461 silver badge4 bronze badges
If you are using conda environment:
conda install -c conda-forge kivy
works in python 3.8
answered Nov 19, 2020 at 10:07
karenkaren
8221 gold badge6 silver badges22 bronze badges
I am windows 10, with 3.8.2
seems pip install kivy==2.0.0rc2 worked. At least it installed.
time to tell if I can develop with it using 3.8.2
answered Sep 11, 2020 at 21:15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
Resonanz opened this issue
Oct 25, 2022
· 31 comments
Closed
Kivy won’t install on Python 3.11.0
#8042
Resonanz opened this issue
Oct 25, 2022
· 31 comments
Comments
Kivy won’t install in a venv created by Python 3.11.0 (released yesterday).
(venv_3.11.0) C:UsersabcdePython>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.
ryancantrell321 reacted with confused emoji
Same here. Had to go back to 3.10.4 for now.
On Raspberry Pi, I cannot get Kivy to install with 3.10.8. Going back to 3.7.
The issue on the Pi is different, and probably because Cython doesn’t seem to be available (https://www.piwheels.org/project/cython/).
Not sure sorry. Kivy does work very nicely on RPi if Python version is 3.7.3.
FYI:
PRE-RELEASE VERSION NOW AVAILABLE:
A pre-release 2.2.0.dev0
version is now available via PyPi
:
pip install kivy --upgrade --pre
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:
This will only install a development version of Kivy if one was released to PyPi. Instead, one can also install the latest cutting-edge Nightly wheels from the Kivy server with:
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/
It is done in two steps, because otherwise pip may ignore the wheels on the server and install an older pre-release version from PyPi.
I will update this issue when we will land in RC phase for 2.2.0 😀
AlexandreCabana and bedbad reacted with thumbs down emoji
maorgur, kengoon, tofi1130, iKFCode, medyousef, and SanaMaqsood reacted with laugh emoji
bedbad reacted with confused emoji
alonsopcastro reacted with heart emoji
> 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/
This as a final step DOES work for me. Below is what I did leading up to this, in case any of these steps were prerequisites.
(I’m really not concerned with why right now, just needed an old project to run again. So, sorry if some of this is technically wrong. This sequence of events made my app run again.)
brew install pkg-config sdl2 sdl2_image sdl2_ttf sdl2_mixer
python -m pip install "kivy[base] @ https://github.com/kivy/kivy/archive/stable.zip"
python -m pip install "kivy[base]" kivy_examples --no-binary kiv
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/
It looks like «kivy_deps.sdl2_dev» should be «kivy-deps.sdl2-dev» in whatever sub-process is checking for it.
If you are waiting for a Kivy version that supports Python 3.11, you can use the Python 3.10 version if you have it installed on your PC. To create a virtual environment using Python 3.10, you can use the following command:
py -3.10 -m venv your_venv_name
This will work if you have one of the Python 3.10 version installed on your machine.
After activate your venv like This: your_venv_namescriptsactivate
Just run: py -m pip install kivy[full] kivy_examples
I think it should work!
Just downgrade to version 10. I had the same problem but I uninstalled my 3.11.0 and now I’m using 3.10.4
you can use several python version you will just create visual environment for the version you wanna use
benjiemc
added a commit
to benjiemc/snake-game
that referenced
this issue
Dec 27, 2022
Kivy currently does not build for python 3.11. See issue [here](kivy/kivy#8042).
If you are waiting for a Kivy version that supports Python 3.11, you can use the Python 3.10 version if you have it installed on your PC. To create a virtual environment using Python 3.10, you can use the following command:
py -3.10 -m venv your_venv_name
This will work if you have one of the Python 3.10 version installed on your machine.
After activate your venv like This:
your_venv_namescriptsactivate
Just run:py -m pip install kivy[full] kivy_examples
I think it should work!
Yesss..!! It Works..!! Thanks..!!
For anyone using poetry this worked for me
poetry source add --secondary kivy https://kivy.org/downloads/simple/
poetry add --allow-prereleases --source kivy kivy
Yeh this works, I re downloaded Python 3.10 , and then added it into the interpreter list of my project. Then the package Kivy was installed successfully.
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"
python -m pip install "kivy[base,media] @ https://github.com/kivy/kivy/archive/master.zip"
also worked for me on Python 3.11 on Windows 11, looks like the media components are working from very limited testing.
I’m a brand new Kivy user (installing it to play with it for the very first time), so not really qualified for troubleshooting — however, I did notice that in the kivy-examples demo showcase, the Bubbles demo fails with kivy.uix.bubble.BubbleException: Bubble can only contain a single Widget or Layout
. On my Linux box running v2.1.0 on Python 3.10.6 the Bubbles demo works fine.
Kivy won’t install in a venv created by Python 3.11.0 (released yesterday).
(venv_3.11.0) C:UsersabcdePython>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.
have you solved this problem
Python major releases are done around October/November; so unsure if that counts as almost released
FYI:
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:
This will only install a development version of Kivy if one was released to PyPi. Instead, one can also install the latest cutting-edge Nightly wheels from the Kivy server with:
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/
It is done in two steps, because otherwise pip may ignore the wheels on the server and install an older pre-release version from PyPi.
I will update this issue when we will land in RC phase for 2.2.0 😀
i used it and it worked
I am getting the same error
** This is the error **
Collecting Kivy
Using cached Kivy-2.1.0.tar.gz (23.8 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Collecting setuptools
Using cached setuptools-67.6.0-py3-none-any.whl (1.1 MB)
Collecting wheel
Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
Collecting cython!=0.27,!=0.27.2,<=0.29.28,>=0.24
Using cached Cython-0.29.28-py2.py3-none-any.whl (983 kB)
Collecting kivy_deps.gstreamer_dev~=0.3.3
Using cached kivy_deps.gstreamer_dev-0.3.3-cp311-cp311-win_amd64.whl (3.9 MB)
ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2_dev~=0.4.5 (from versions: 0.5.1)
ERROR: No matching distribution found for kivy_deps.sdl2_dev~=0.4.5
[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.
Fix:
- Download Python 3.10.10, Install it, but DO NOT ADD TO PATH.
- Type in CMD py -3.10 —version Output : Python 3.10.10
- CMD: pip install virtualenv
- Now create virtual environment, py -3.10 venv .venv
- Activate the environment .venvScriptsactivate
- install the kivy pip install kivy
Commands:
>> py -3.10 --version
>> pip install virtualenv
>> py -3.10 venv .venv
>> .venvScriptsactivate
>> pip install kivy
The issue still occurs, instead of rolling back to a earlier version of python I just specified the version like:
pip install kivy_deps.sdl2_dev==0.5.1
OR
pip install kivy_deps.sdl2_dev==0.6.0
Kivy 2.2.0
has been released, and we now ship wheels for 3.11
.
Thank you to everyone who tested the pre-release builds!
I don’t understand why I can’t install kivy.
I’m on Windows 10 64 bits with Python 3.10.
I have tried with pip
, pip3
, on administrator command, to install the master.zip
.
Always the same error (and same with Python 3.9)
Here the terminal print:
<code>PS C:UsersdieunDesktopPythonkivy> pip3 install kivy
Defaulting to user installation because normal site-packages is not writeable
Collecting kivy
Using cached Kivy-2.0.0.tar.gz (23.7 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:program filespython310python.exe' 'C:UsersdieunAppDataLocalTemppip-standalone-pip-8ibcb9j6__env_pip__.zippip' install --ignore-installed --no-user --prefix 'C:UsersdieunAppDataLocalTemppip-build-env-m3qb
6iunoverlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'cython>=0.24,<=0.29.21,!=0.27,!=0.27.2' 'kivy_deps.gstreamer_dev~=0.3.1; sys_platform == "win32"' 'kivy_dep
s.sdl2_dev~=0.3.1; sys_platform == "win32"' 'kivy_deps.glew_dev~=0.3.0; sys_platform == "win32"' 'kivy_deps.gstreamer~=0.3.1; sys_platform == "win32"' 'kivy_deps.sdl2~=0.3.1; sys_platform == "win32"' 'kivy_deps.glew~=0.3.0; sys_platfor
m == "win32"'
cwd: None
Complete output (10 lines):
Collecting setuptools
Using cached setuptools-58.4.0-py3-none-any.whl (946 kB)
Collecting wheel
Using cached wheel-0.37.0-py2.py3-none-any.whl (35 kB)
Collecting cython!=0.27,!=0.27.2,<=0.29.21,>=0.24
Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
Collecting kivy_deps.gstreamer_dev~=0.3.1
Using cached kivy_deps.gstreamer_dev-0.3.2-cp310-cp310-win_amd64.whl (3.9 MB)
ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2_dev~=0.3.1 (from versions: 0.4.2, 0.
4.3)
ERROR: No matching distribution found for kivy_deps.sdl2_dev~=0.3.1
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/12/96/091ddacafb84dd18555a32d860dbfaf9c806147aa30c6f3c8b93cb7bab97/Kivy-2.0.0.tar.gz#sha256=d25e44eb44e43762b2fd0c5874e51954e0f1181fd9800d8a6756be6d084812d8 (from https://pypi
.org/simple/kivy/). Command errored out with exit status 1: 'c:program filespython310python.exe' 'C:UsersdieunAppDataLocalTemppip-standalone-pip-8ibcb9j6__env_pip__.zippip' install --ignore-installed --no-user --prefix 'C:U
sersdieunAppDataLocalTemppip-build-env-m3qb6iunoverlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'cython>=0.24,<=0.29.21,!=0.27,!=0.27.2' 'kivy_deps.gstreame
r_dev~=0.3.1; sys_platform == "win32"' 'kivy_deps.sdl2_dev~=0.3.1; sys_platform == "win32"' 'kivy_deps.glew_dev~=0.3.0; sys_platform == "win32"' 'kivy_deps.gstreamer~=0.3.1; sys_platform == "win32"' 'kivy_deps.sdl2~=0.3.1; sys_platform
== "win32"' 'kivy_deps.glew~=0.3.0; sys_platform == "win32"' Check the logs for full command output.
Using cached Kivy-1.11.1.tar.gz (23.6 MB)
Preparing metadata (setup.py) ... error'''</code>
and again and again…
Здравствуйте, нужна помощь с kivy
при вводе команды (python -m pip install kivy==1.11.1) выдает вот такую ошибку
ERROR: Command errored out with exit status 1:
(здесь огромная куча букв )
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
PS C:Windowssystem32>
помогите пожалуйста
заранее спасибо