Search code examples
pythonwindowsinstallationpipkivy

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

  • It looks like it may be related to this issue here - Problem with installing kivy. Windows 10 #4991

    Instead of

    python -m pip install kivy
    

    do

    python -m pip install https://github.com/kivy/kivy/archive/master.zip
    

    or clone it in and install that way.

    Also, try and run your cmd line in an administrator mode.