'ERROR INSTALLING KIVY: Why am I Getting Error After Executing: "python -m pip install kivy"?
I've been trying to install kivy on my machine (windows10) but I got the big error message and here is a part of it:
ERROR: Command errored out with exit status 1: command: 'C:\Users\budim\kivy_venv\Scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\budim\\AppData\\Local\\Temp\\pip-install-bur_n_r3\\kivy\\setup.py'"'"'; __file__='"'"'C:\\Users\\budim\\AppData\\Local\\Temp\\pip-install-bur_n_r3\\kivy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\budim\AppData\Local\Temp\pip-pip-egg-info-gd8fylih' cwd: C:\Users\budim\AppData\Local\Temp\pip-install-bur_n_r3\kivy\ Complete output (388 lines): ERROR: Command errored out with exit status 1: command: 'C:\Users\budim\kivy_venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\budim\\AppData\\Local\\Temp\\pip-wheel-no3k1_h3\\cython\\setup.py'"'"'; __file__='"'"'C:\\Users\\budim\\AppData\\Local\\Temp\\pip-wheel-no3k1_h3\\cython\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\budim\AppData\Local\Temp\pip-wheel-x41teyf2' cwd: C:\Users\budim\AppData\Local\Temp\pip-wheel-no3k1_h3\cython\ Complete output (321 lines):
I think that is the most important part(I can't put the whole error because it's huge)
Here are the commands that I executed:
python -m pip install --upgrade pip wheel setuptools
python -m pip install docutils pygments pypiwin32
kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy.deps.gstreamer
python -m pip install kivy.deps.angle
python -m pip install pygame
python -m pip install kivy
P.S. I get the error after executing the last command
Can anyone explain to me why is this happening?
Solution 1:[1]
If you are trying to install kivy with python 3.10 version you would be getting an error as the latest version has not yet acclimatized well to handle kivy. It is not impossible to install kiwi on 3.10 version but it is an cumbersome process and also very messy... I would rather recommend you to use 3.9.2 version of python which will enable you to install kivy without much issues...
Solution 2:[2]
I think you are using the latest version of python, try using version 3.92 or older because some of the python libraries don't support the newer version of python.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Noob coder |
| Solution 2 | Lokesh |
