mamdouh abdelfatah
mamdouh abdelfatah

Reputation: 53

I can't import kivy in python

I use windows 10 64-bit, python 3.6, pip 8.1.2 and kivy 1.9.1. kivywas installed according to the documentation.

After installing kivy I can't import it as I get this error

ImportError: No module named 'kivy'

How can I solve this I searched many times and followed the steps and it ends up with the same problem

Upvotes: 1

Views: 13260

Answers (2)

Saikat halder
Saikat halder

Reputation: 618

Ensure you have the latest pip and wheel:

python -m pip install --upgrade pip wheel setuptools

Install the dependencies (skip gstreamer (~120MB) if not needed, see Kivy’s dependencies):

python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew

python -m pip install kivy.deps.gstreamer

Note

If you encounter a MemoryError while installing, add after pip install an option

–no-cache-dir

.

For Python 3.5+, you can also use the angle backend instead of glew. This can be installed with:

python -m pip install kivy.deps.angle

Install kivy:

python -m pip install kivy

(Optionally) Install the kivy examples:

python -m pip install kivy_examples

The examples are installed in the share directory under the root directory where python is installed.

Upvotes: 1

innov8
innov8

Reputation: 2219

This is old, but if anyone stumbles on it the answer can be found here: trying to install kivy on my pc i get the following errors

All the convenience of wheels can be found with 3.6 now as well as with older versions

Upvotes: 0

Related Questions