LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-31-2009, 06:15 PM   #1
zoopside
LQ Newbie
 
Registered: Sep 2003
Distribution: Eee PC Xandros
Posts: 8

Rep: Reputation: 0
Installing python-numpy in the python2.5 installation of eee-pc


Hello all,
I'm trying to get python-numpy installed within my python2.5 (/usr/bin/python2.5) installation. When I do an apt-get install python-numpy, it has installed the correct package within the python2.4 installation. I've also managed to manually install python-scipy into the /site-packages directory of python2.5, but for some reason the same is not working for numpy.

So, I could also just do without 2.4 as well, but am unsure how to force the default instance to point to or be upgraded to 2.5. Any information is greatly appreciated. Thanks beforehand.
 
Old 04-01-2009, 04:50 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
http://www.scipy.org/Download
http://sourceforge.net/project/showf...kage_id=175103
> > numpy-1.3.0rc1.tar.gz
( Or use your preferred version.)

Unpack with : tar xvf numpy-1.3.0rc1.tar.gz
Next : cd numpy-1.3.0rc1
And : # python2.5 setup.py install

should put numpy in /usr/lib/python2.5/ .
.....

Last edited by knudfl; 04-01-2009 at 04:53 PM.
 
Old 04-01-2009, 07:32 PM   #3
zoopside
LQ Newbie
 
Registered: Sep 2003
Distribution: Eee PC Xandros
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks knudfl. I've now done the above and get the following error, after many other messages:

File "numpy/core/setup.py", line 186, in check_types
"Cannot compiler 'Python.h'. Perhaps you need to "\
SystemError: Cannot compiler 'Python.h'. Perhaps you need to install python-dev|python-devel.

I installed python2.5-dev, and gcc, and the error persists. Any other ideas? Thanks again.
 
Old 04-01-2009, 07:42 PM   #4
zoopside
LQ Newbie
 
Registered: Sep 2003
Distribution: Eee PC Xandros
Posts: 8

Original Poster
Rep: Reputation: 0
And a better question, which I believe will solve all my issues. I have 2.4 and 2.5 on my machine, but Synaptic only looks at the 2.4 instance, so when I attempt to install 2.5 items, it always complains about conflicts. Do you know how I can force synaptic to assume that I only have 2.5 installed? Updating the /usr/bin/python symbolic link isn't enough somehow.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Python package including numpy , scipy,mpi4py , pycxx , symeig madani Linux - Software 1 03-14-2009 06:22 PM
python error , import numpy ufmale Programming 2 08-25-2008 11:59 PM
[help]---Can't find Python library python2.5 LinczO_Dz Linux - Software 6 04-19-2008 10:09 AM
Numpy installation help wuzzo87 Linux - Software 2 04-06-2007 06:50 AM
Visual Python/Numpy uranologist Linux - Software 0 09-28-2003 10:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration