How do you install kivy in the anaconda environment on mac os X10.9?

Asked

Viewed 377 times

0

I tried to install as instructed: https://github.com/kivy/kivy/wiki/Connecting-Kivy-with-Anaconda-(OSX)

Error:

(Most recent call last): File ", line 1, in File "/Users/cicerozanoni/anaconda/envs/kivy/lib/python2.7/site-packages/spyderlib/wi‌​dgets/externalshell/sitecustomize.py", line 580, in runfile execfile(filename, namespace) File "/Users/cicerozanoni/Documents/Python/Kivy/examples/widgets/label_text_size.py", line 10, in import kivy Import: No module named kivy

Unsuccessful. I’ve tried to switch the link to inside the environment created in anaconda and nothing...someone has any hint?

Thank you.

  • 1

    Could you explain the errors you have received? So someone can help you more easily.

  • Hello...the message is that you don’t recognize the kivy...but in the system python, you recognize... Traceback (most recent call last):&#xA; File "<stdin>", line 1, in <module>&#xA; File "/Users/cicerozanoni/anaconda/envs/kivy/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 580, in runfile&#xA; execfile(filename, namespace)&#xA; File "/Users/cicerozanoni/Documents/Python/Kivy/examples/widgets/label_text_size.py", line 10, in <module> import kivy Import: No module named kivy

  • You tried my answer?

1 answer

0

Consulting my anaconda found the kivy for osx-64, as its link is from 2016, it may be that the anaconda has included the package and the documentation has not registered I do not have a mac here to test, but if the package is integrated and is even the kivy, should work, see the steps:

Do a search on the anacoda:

$ anaconda search kivy
Using Anaconda API: https://api.anaconda.org
Run 'anaconda show <USER/PACKAGE>' to get more details:
Packages:
     Name                      |  Version | Package Types   | Platforms      
     ------------------------- |   ------ | --------------- | ---------------
     Judowill/kivy             |    1.8.0 | conda           | linux-64       
                                          : A software library for rapid development of hardware-accelerated multitouch applications.
     akode/kivy                |    1.9.1 | conda           | osx-64         
     auto/kivy-garden          |    0.1.1 | conda           | linux-64       
                                          : http://kivy-garden.github.io/
     krisvanneste/kivy         |    1.8.0 | conda           | win-64         
     krisvanneste/kivy-garden  |    0.1.2 | conda           | win-64         
     moritzimend/kivy          |      1.9 | conda           | linux-64       
                                          : latest development version of kivy
     pypi/Kivy                 |    1.8.0 | pypi            |                
                                          : A software library for rapid development of hardware-accelerated multitouch applications.
     pypi/kivy-garden          |    0.1.2 | pypi            |                
                                          : Kivys Garden tool to manage extensions for kivy framework.
     wgarcia/kivy              |    1.9.1 | conda           | linux-64       
Found 9 packages

Note the package akode/kivy, now let’s get information on how to install it:

$ anaconda show akode/kivy
Using Anaconda API: https://api.anaconda.org
Name:    kivy
Summary:                                                                                                                                     
Access:  public                                                                                                                              
Package Types:  conda                                                                                                                        
Versions:                                                                                                                                    
   + 1.9.1                                                                                                                                   

To install this package with conda run:                                                                                                      
     conda install --channel https://conda.anaconda.org/akode kivy

Creating an environment for the kivy:

conda create -n kivy python=3.6

Installing the kivy:

$ source activate kivy
(kivy)~$ conda install --channel https://conda.anaconda.org/akode kivy

Install the other packages, most of them you can use Pip.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.