python - kivy: error: Failed building wheel for kivy

1

I'm trying to install kivy and I have the following error:

My OS is W7 64 bits

My version of python is 3.6 (32 bits)

What can I do?

    
asked by Mr. Baldan 14.04.2017 в 07:14
source

1 answer

1

Try downloading directly the binary file (wheel), ie the library already compiled for your system using one of the following links depending on your version of Python:

You say that your system is 64 but the Python version (32 or 64 bits) does not say it. If you have doubts, open the interactive interpreter and show you if it is 64 or 32 bits.

Once downloaded install it using:

py -3.6 -m pip install ruta_del_archivo.whl

To simplify it you can go to the download folder and in the address bar of the Explorer you delete everything and put cmd and press Enter . This will launch the console in the current directory and you will only need something like:

64-bit version:

py -3.6 -m pip install Kivy-1.9.1+sdl2-cp36-cp36m-win_amd64.whl

or for the 32-bit version:

py -3.6 -m pip install Kivy-1.9.1+sdl2-cp36-cp36m-win32.whl

The links belong to the page by Christoph Gohlke of the University of California that provides updated binaries for Windows of the most important Python packages. I leave the page because the links at the beginning may vary over time.

Try this to see if the problem appears like this or not. Kivy has problems with the MinGW compiler in Windows for Python versions> = 3.5 so to avoid problems when installing via pip it is better to use the binaries directly.

    
answered by 14.04.2017 / 07:58
source