Unable to build wheels for Kivy - python

I am trying to install Kivy but below you can find the error log that I receive when running the installation.
I am new to Python, could someone please advise what I have done wrong? Had to cut a lot to allow it to post.
CMD:(kivy_venv) C:\Users\noodl\PycharmProjects\16Feb>python -m pip install "kivy[base] # https://github.com/kivy/kivy/archive/master.zip"
Collecting kivy[base]# https://github.com/kivy/kivy/archive/master.zip
Using cached https://github.com/kivy/kivy/archive/master.zip (24.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting Kivy-Garden>=0.1.4
Using cached Kivy_Garden-0.1.5-py3-none-any.whl (4.6 kB)
Collecting docutils
Using cached docutils-0.19-py3-none-any.whl (570 kB)
Collecting pygments
Using cached Pygments-2.14.0-py3-none-any.whl (1.1 MB)
Collecting kivy-deps.angle~=0.3.2
Using cached kivy_deps.angle-0.3.3-cp311-cp311-win_amd64.whl (4.8 MB)
Collecting kivy-deps.sdl2~=0.5.0
Using cached kivy_deps.sdl2-0.5.1-cp311-cp311-win_amd64.whl (2.6 MB)
Collecting kivy-deps.glew~=0.3.1
Using cached kivy_deps.glew-0.3.1-cp311-cp311-win_amd64.whl (123 kB)
Collecting pypiwin32
Using cached pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting pillow
Using cached Pillow-9.4.0-cp311-cp311-win_amd64.whl (2.5 MB)
Collecting requests
Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting pywin32>=223
Using cached pywin32-305-cp311-cp311-win_amd64.whl (12.1 MB)
Collecting charset-normalizer<4,>=2
Using cached charset_normalizer-3.0.1-cp311-cp311-win_amd64.whl (96 kB)
Collecting idna<4,>=2.5Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Building wheels for collected packages: kivy
Building wheel for kivy (pyproject.toml) ... error
error: subprocess-exited-with-error
Building wheel for kivy (pyproject.toml) did not run successfully.
exit code: 1
[884 lines of output]
[INFO ] [Logger ] Record log in C:\Users\noodl.kivy\logs\kivy_23-02-16_13.txt
[INFO ] [deps ] Successfully imported "kivy_deps.gstreamer_dev" 0.3.3
[INFO ] [deps ] Successfully imported "kivy_deps.gstreamer" 0.3.3
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.3.1
[INFO ] [deps ] Successfully imported "kivy_deps.glew_dev" 0.3.1
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.5.1
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2_dev" 0.5.1
[INFO ] [Kivy ] v2.2.0.dev0
[INFO ] [Kivy ] Installed at "C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy_init_.py"
[INFO ] [Python ] v3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at "C:\Users\noodl\PycharmProjects\16Feb\kivy_venv\Scripts\python.exe"
[INFO ] [Logger ] Purge log fired. Processing...
[INFO ] [Logger ] Purge finished!
<string>:370: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
<string>:373: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
<string>:377: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
Current directory is: C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12
Source and initial build directory is: C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12
Python path is:
C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12
C:\Users\noodl\PycharmProjects\16Feb\kivy_venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process
C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\site
C:\Program Files\Python311\python311.zip
C:\Program Files\Python311\DLLs
C:\Program Files\Python311\Lib
C:\Program Files\Python311
C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Lib\site-packages
C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\normal\Lib\site-packages
C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\modules
C:\Users\noodl\.kivy\mods
Found Cython at C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Lib\site-packages\Cython\__init__.py
Detected supported Cython version 0.29.32
User distribution detected, avoid portable command.
Using this graphics system: OpenGL
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
GStreamer found via gst.h
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
SDL2: found SDL header at C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Include\SDL2\SDL.h
SDL2: found SDL_mixer header at C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Include\SDL2\SDL_mixer.h
SDL2: found SDL_ttf header at C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Include\SDL2\SDL_ttf.h
SDL2: found SDL_image header at C:\Users\noodl\AppData\Local\Temp\pip-build-env-v6sgt9pe\overlay\Include\SDL2\SDL_image.h
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: Dependency for boxshadow.pyx not resolved: config.pxi
[INFO ] running bdist_wheel
[INFO ] running build
[INFO ] running build_py
311\kivy\core\video[INFO ] copying kivy\core\video\video_gstplayer.py -> build\lib.win-amd64-cpython-311\kivy\core\video[INFO ] copying kivy\core\video\video_null.py -> build\lib.win-amd64-cpython-311\kivy\core\video
IC:\Program Files\Python311\Include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" /TcC:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\weakproxy.c /Fobuild\temp.win-amd64-cpython-311\Release\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\weakproxy.obj
_event.c
properties.c
weakproxy.c
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directoryC:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
311\Release\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\graphics\fbo.obj
compiler.c
context_instructions.c
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
fbo.c
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
[INFO ] building 'kivy.graphics.gl_instructions' extension
[INFO ] ["C ]\Program Files\Microsoft Visual
_clock.c
cgl_debug.c
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
[INFO ] building 'kivy.core.window.window_info' extension
[INFO ] building 'kivy.graphics.tesselator' extension
[INFO ] building 'kivy.graphics.svg' extension
[INFO ] creating build\temp.win-amd64-cpython-311\Release\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\core\window
d64-cpython-311\Release\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\lib/gstplayer_gstplayer.objaudio_sdl2.cC:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directoryC:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory_clipboard_sdl2.c
_gstplayer.c
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
C:\Program Files\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
Building extensions in parallel using 4 cores
Updated build directory to: build\lib.win-amd64-cpython-311
Build configuration is:
* use_rpi = 0
* use_egl = 0
* use_opengl_es2 = 0
* use_opengl_mock = 0
* use_sdl2 = 1
* use_pangoft2 = 0
* use_ios = 0
* use_android = 0
* use_mesagl = 0
* use_x11 = 0
* use_wayland = 0
* use_gstreamer = 1
* use_avfoundation = 0
* use_osx_frameworks = 0
* debug_gl = 0
* kivy_sdl_gl_alpha_size = 8
* debug = False
Updated build\lib.win-amd64-cpython-311\kivy\include\config.h
Updated C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\include\config.h
Updated build\lib.win-amd64-cpython-311\kivy\include\config.pxi
Updated C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\include\config.pxi
Updated build\lib.win-amd64-cpython-311\kivy\setupconfig.py
Updated C:\Users\noodl\AppData\Local\Temp\pip-install-2a8o8ekj\kivy_f60cff3dbd194678b4fad858245dae12\kivy\setupconfig.py
Detected compiler is msvc
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for kivy
Failed to build kivy
ERROR: Could not build wheels for kivy, which is required to install pyproject.toml-based projects
I have reinstalled software multiple times, and made sure I followed the installation guide but no luck yet.

Related

error setup ta-lib Python.h requires that stdio.h define NULL

when i try to install ta-lib i have this problem, nonetheless i installed before talib($ brew install talib)
Thank you for help or a hint....
$ pip install ta-lib
Collecting ta-lib
Using cached TA-Lib-0.4.24.tar.gz (269 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from ta-lib) (1.21.5)
Building wheels for collected packages: ta-lib
Building wheel for ta-lib (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
skipping 'talib/_ta_lib.c' Cython extension (up-to-date)
building 'talib._ta_lib' extension
In file included from talib/_ta_lib.c:6:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/Python.h:25:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/stdio.h:32:
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/sys/cdefs.h:758:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from talib/_ta_lib.c:6:
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/Python.h:27:5: error: "Python.h requires that stdio.h define NULL."
# error "Python.h requires that stdio.h define NULL."
^
In file included from talib/_ta_lib.c:6:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/Python.h:30:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/string.h:41:
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/sys/types.h:78:10: fatal error: 'machine/types.h' file not found
#include <machine/types.h>
^~~~~~~~~~~~~~~~~
3 errors generated.
error: command '/usr/local/Cellar/llvm#9/9.0.1_4/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ta-lib
Running setup.py clean for ta-lib
Failed to build ta-lib
Installing collected packages: ta-lib
Running setup.py install for ta-lib ... error
error: subprocess-exited-with-error
× Running setup.py install for ta-lib did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
running install
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
running build_ext
skipping 'talib/_ta_lib.c' Cython extension (up-to-date)
building 'talib._ta_lib' extension
In file included from talib/_ta_lib.c:6:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/Python.h:25:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/stdio.h:32:
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/sys/cdefs.h:758:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from talib/_ta_lib.c:6:
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/Python.h:27:5: error: "Python.h requires that stdio.h define NULL."
# error "Python.h requires that stdio.h define NULL."
^
In file included from talib/_ta_lib.c:6:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/Python.h:30:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/string.h:41:
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/sys/types.h:78:10: fatal error: 'machine/types.h' file not found
#include <machine/types.h>
^~~~~~~~~~~~~~~~~
3 errors generated.
error: command '/usr/local/Cellar/llvm#9/9.0.1_4/bin/clang' failed with exit code 1
[end of output]

face_recognition dlib error with CMake during installation

I'm trying to download face_recognition for a project. Keep getting this error. Any ideas to fix it?
C:\>pip install face_recognition
Requirement already satisfied: numpy in c:\python\lib\site-packages (from face_recognition) (1.22.2)
Running setup.py install for dlib ... error
error: subprocess-exited-with-error
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:14 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:14 (project):
No CMAKE_CXX_COMPILER could be found

Unable to install older versions of kivy(1.11.1)

I was trying to download a specific version of kivy on windows 10
Using the command pip install kivy==1.11.1
But unfortunately its throwing me the an error every time
I tried on python 3.8 and 3.9
Error
PS C:\Users\DELL\PycharmProjects\pythonProject5> pip install kivy==1.11.1
Collecting kivy==1.11.1
Using cached Kivy-1.11.1.tar.gz (23.6 MB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\DELL\PycharmProjects\pythonProject5\venv\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\
DELL\\AppData\\Local\\Temp\\pip-install-xzh5pn7u\\kivy_fa50084c889744ab947ceda05f1f5068\\setup.py'"'"'; __file__='"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-
install-xzh5pn7u\\kivy_fa50084c889744ab947ceda05f1f5068\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.
StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'
"'"'))' egg_info --egg-base 'C:\Users\DELL\AppData\Local\Temp\pip-pip-egg-info-31ligwpm'
cwd: C:\Users\DELL\AppData\Local\Temp\pip-install-xzh5pn7u\kivy_fa50084c889744ab947ceda05f1f5068\
Complete output (395 lines):
WARNING: Skipping page https://github.com/kivy-garden/garden/archive/master.zip because the HEAD request got Content-Type: application/zip.The only supported
Content-Type is text/html
ERROR: Command errored out with exit status 1:
command: 'C:\Users\DELL\PycharmProjects\pythonProject5\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Us
ers\\DELL\\AppData\\Local\\Temp\\pip-wheel-shrhx05n\\cython_6ddf5340cd6c4d32af23f49c9f16fd57\\setup.py'"'"'; __file__='"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\
\pip-wheel-shrhx05n\\cython_6ddf5340cd6c4d32af23f49c9f16fd57\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) els
e io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'
exec'"'"'))' bdist_wheel -d 'C:\Users\DELL\AppData\Local\Temp\pip-wheel-z42_ozzm'
cwd: C:\Users\DELL\AppData\Local\Temp\pip-wheel-shrhx05n\cython_6ddf5340cd6c4d32af23f49c9f16fd57\
Complete output (321 lines):
Unable to find pgen, not compiling formal grammar.
running bdist_wheel
packages\setuptools\installer.py", line 77, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['C:\\Users\\DELL\\PycharmProjects\\pythonProject5\\venv\\Scripts\\python.exe', '-m', 'pip', '--disable-pip-versio
n-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\DELL\\AppData\\Local\\Temp\\tmpmf8k8ffx', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/arc
hive/master.zip', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.
Using setuptools
User distribution detected, avoid portable command.
Using this graphics system: OpenGL
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
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
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/1b/4d/3f8a720f561dc1eabe036c0d87c6ce9d02823275391265538e606f45e37a/Kivy-1.11.1.tar.gz#sha256=4d0e596f
74271e901b551f77661dde238df4765484fce9f5d1c72e8022984e84 (from https://pypi.org/simple/kivy/). Command errored out with exit status 1: python setup.py egg_info C
heck the logs for full command output.
ERROR: Could not find a version that satisfies the requirement kivy==1.11.1 (from versions: 1.0.1a0, 1.0.2a0, 1.0.3a0, 1.0.4b0, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9
, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.11.1,
2.0.0rc1, 2.0.0rc2, 2.0.0rc3, 2.0.0rc4, 2.0.0)
ERROR: No matching distribution found for kivy==1.11.1
WARNING: You are using pip version 21.1.2; however, version 21.3.1 is available.
You should consider upgrading via the 'C:\Users\DELL\PycharmProjects\pythonProject5\venv\Scripts\python.exe -m pip install --upgrade pip' command.
PS C:\Users\DELL\PycharmProjects\pythonProject5>
Note: ive discarded some lines form the error due to stackoverflow's character limit
Kivy 1.11. 0 is the last release that supports Python 2. Now that python is installed, open the Command line and make sure python is available by typing python --version .
It's for Python 2 and You're On Python 3
and You want to downgrade for that!

How should I downgrade to Python 3.7 from Python 3.8? [duplicate]

This question already has answers here:
How to deal with Kivy installing error in Python 3.8?
(5 answers)
Closed 2 years ago.
I am trying to install kivy which does not support Python 3.8.
I have an app made on kivy on Windows 10. I am trying to build an apk. After following the instructions I figured I have Python 3.8 installed and always got an error when trying to install kivy on the VM LUbuntu.
I get this error when I try to install kivy using the sudo pip3 install kivy command.
raise DistutilsError(str(e))
distutils.errors.DistutilsError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpq9k_yp5j', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/archive/master.zip', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.
Using setuptools
Using this graphics system: OpenGL
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"Package gstreamer-1.0 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `gstreamer-1.0.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'gstreamer-1.0' found\n"
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
b"Package sdl2 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `sdl2.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'sdl2' found\nPackage SDL2_ttf was not found in the pkg-config search path.\nPerhaps you should add the directory containing `SDL2_ttf.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'SDL2_ttf' found\nPackage SDL2_image was not found in the pkg-config search path.\nPerhaps you should add the directory containing `SDL2_image.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'SDL2_image' found\nPackage SDL2_mixer was not found in the pkg-config search path.\nPerhaps you should add the directory containing `SDL2_mixer.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'SDL2_mixer' found\n"
WARNING: A problem occurred while running pkg-config --libs --cflags pangoft2 (code 1)
b"Package pangoft2 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `pangoft2.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'pangoft2' found\n"
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.
How should I downgrade to Python 3.7?
Python 3.8: Try this
pip3 install kivy kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/
How about uninstalling Python 3.8 and then download the setup of Python 3.7 and install it.

How to deal with Kivy installing error in Python 3.8?

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!
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/
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()
This works in macOS Catalina 10.15.6 with python 3.8.0+
pip install kivy==2.0.0rc2
If you are using conda environment:
conda install -c conda-forge kivy
works in python 3.8
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

Categories

Resources