Difficulty installing numpy into kivy's python installation

960 views
Skip to first unread message

James 0L

unread,
Sep 24, 2013, 11:03:18 AM9/24/13
to kivy-...@googlegroups.com
I would like to add numpy to kivy's python installation on a windows machine. One would typically use the numpy executable to install numpy, but when I try to do this, it only finds the standalone python version on the machine, rather than the version that comes with kivy, and thus, does not present the option of adding numpy to kivy. Using kivy's pip in an attempt to install numpy produces an error message that stems from numpy's dependency on lapack, which has to be compiled with cmake, minigw, and whatever else, and presents a serious hassle.

Can anyone give advice on how to install numpy into kivy's python directory? Also, if this is accomplished, will there be any issues in targeting kivy apps using numpy for android or ios? Thank you.

Daniel Plucenio

unread,
Sep 24, 2013, 11:56:56 AM9/24/13
to kivy-...@googlegroups.com
Hi James,
I wanted the same thing in order to have a unified python environment for my other engineering projects (with numpy and scipy). I don't know if what I did is the best solution but it works. There is this python script that you can run and will register the python interpreter you used to call it. You can find it in here:

So you could open your kivy shell and run it. After that you can use the numpy installer. Then go back and run it again with your other interpreter if you want.

One thing that I couldn't do myself was to configure matplotlib backends to run properly with the python interpreter that comes with kivy... there is another thread going on right now about that, i hope there's a solution too :)





2013/9/24 James 0L <james...@gmail.com>
I would like to add numpy to kivy's python installation on a windows machine. One would typically use the numpy executable to install numpy, but when I try to do this, it only finds the standalone python version on the machine, rather than the version that comes with kivy, and thus, does not present the option of adding numpy to kivy. Using kivy's pip in an attempt to install numpy produces an error message that stems from numpy's dependency on lapack, which has to be compiled with cmake, minigw, and whatever else, and presents a serious hassle.

Can anyone give advice on how to install numpy into kivy's python directory? Also, if this is accomplished, will there be any issues in targeting kivy apps using numpy for android or ios? Thank you.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

James 0L

unread,
Sep 24, 2013, 12:53:17 PM9/24/13
to kivy-...@googlegroups.com
Awesome - numpy appears to have installed correctly! However, as you pointed out, issues with matplotlib still remain. I'll post a solution if I manage to come up with anything on that front. Thanks, Daniel!

Mathieu Virbel

unread,
Sep 25, 2013, 3:14:08 PM9/25/13
to kivy-...@googlegroups.com
I guess the real solution would be that someone who understand how
Windows registry works, make a .reg for registrering our kivy
installation as part of the system.

Patch welcome (or .reg)!

Le 24/09/2013 17:03, James 0L a �crit :
Message has been deleted

James 0L

unread,
Sep 26, 2013, 6:45:32 AM9/26/13
to kivy-...@googlegroups.com
I think the downside to this approach would be that it would compromise the self-contained nature of the kivy "installation". I like being able to move the installation just by moving the directory (and I guess this is convenient as long as the directory doesn't get too large through having too many modules installed, etc). If a kivy install were added to the registry, it could no longer be treated like a self-contained application (unless the script were run every time that the kivy directory is moved, removing the old registry details, and filling in the new details each time). But if easy portability isn't the goal, then that approach sound fine.


On Wednesday, September 25, 2013 2:14:08 PM UTC-5, Mathieu Virbel wrote:
I guess the real solution would be that someone who understand how
Windows registry works, make a .reg for registrering our kivy
installation as part of the system.

Patch welcome (or .reg)!

Le 24/09/2013 17:03, James 0L a �crit :

ben...@timecodelab.com

unread,
Sep 9, 2014, 1:34:56 PM9/9/14
to kivy-...@googlegroups.com
Hey this is an old thread, but it popped first when I searched for this. Simply copying the files from your main 2.7 installation over to site-packages into the kivy installation seems to work fine.

David Goldsmith - NOAA Affiliate

unread,
Mar 5, 2015, 3:48:50 PM3/5/15
to kivy-...@googlegroups.com
Hi!  I'm ready to try this as well; one concern, however: one of the main reasons why we're using Kivy is for the hand-helds support--can anyone confirm that adding numpy in either of these ways doesn't compromise this feature of Kivy?  Thanks!

DLG
Reply all
Reply to author
Forward
0 new messages