473,738 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

best way to install python modules on linux

Hi,

I am pretty new to python and will use it mainly in
combination with scientific packages. I am running ubuntu
breezy right now and see that some packages are out of date.
Do you have any suggestion, how I can get/keep the latest
python modules (e.g. scipy, numpy,...) on my ubuntu system?
I.e. does there exist any script/program, which downloads
and installs automatically the latest stable releases of selected
modules? It would be nice, if the program can remove the
installed modules, too!?

Or would it be easier to stick to apt/deb and create own
packages ...
Greetings!
Fabian

Apr 7 '06 #1
4 4325
You should consider gentoo as it big on python with all the latest
packages. And no, installing doesn't take much effort.

Apr 7 '06 #2
Fabian Braennstroem wrote:

I am pretty new to python and will use it mainly in
combination with scientific packages. I am running ubuntu
breezy right now and see that some packages are out of date.
You can quite often backport some of the newer packages from
packages.ubuntu .com, although this can often lead to a lot of work
backporting dependencies and working around changes to the build
environment in more recent Ubuntu work. For example, I promised Tim
Parkin that I'd look into making Ubuntu Hoary packages for the
python.org tools, but got substantially slowed down looking into
backporting the Twisted 2 packages (which are only some of the many
dependencies that Pyramid seems to have). Of course, I could just do a
"python setup.py install" and forget about all this, but I don't want
to discover bizarre behaviour later on in some installed package
because some other, rarely-used package trampled over some important
files or caused some naming conflict when it was installed.
Do you have any suggestion, how I can get/keep the latest
python modules (e.g. scipy, numpy,...) on my ubuntu system?
I.e. does there exist any script/program, which downloads
and installs automatically the latest stable releases of selected
modules? It would be nice, if the program can remove the
installed modules, too!?
The removal part is typically the neglected thing here. My habit right
now is to package up Python modules into Debian packages and to install
them that way. Once upon a time, on Red Hat, I played with checkinstall
[1] to create packages of things that didn't have a "make uninstall"
feature, but I'm now fairly practised at making Debian packages that
seem to work - thanks must go to Andrew Kuchling whose packaging
scripts (from some software which he maintains) served as the basis for
my own packaging attempts.
Or would it be easier to stick to apt/deb and create own
packages ...


There's a big incentive to use the native package system: it works with
the administration tools you have installed, and your packages should
then integrate properly with all the other packages on your system.
I've made packages from my own works and distributed them, and changing
even a simple command issuing experience to a point-and-click
installation experience does seem to have a dramatic influence on
whether people will bother looking at software or not. Plus, they can
always easily remove the software afterwards. ;-)

Paul

[1] http://asic-linux.com.mx/~izto/checkinstall/

Apr 7 '06 #3
Fabian Braennstroem <f.************ @gmx.de> writes:
Hi,

I am pretty new to python and will use it mainly in
combination with scientific packages. I am running ubuntu
breezy right now and see that some packages are out of date.
Do you have any suggestion, how I can get/keep the latest
python modules (e.g. scipy, numpy,...) on my ubuntu system?
I.e. does there exist any script/program, which downloads
and installs automatically the latest stable releases of selected
modules? It would be nice, if the program can remove the
installed modules, too!?

Or would it be easier to stick to apt/deb and create own
packages ...
Greetings!
Fabian


I find it helpful to leave the as-delivered Python (e.g.,
/usr/bin/python) as-is. It is being used to run your basic Linux
system. Screwing around with it can have nasty side effects. Instead
I build a new one at /usr/local, give it a unique name, and
upgrade/hack that one to my heart's content. E.g., if the base system
is using Python 2.2, you can be running Python 2.4 as
/usr/local/bin/py24, and add all the numerical packages you wish at
use/local/lib/python2.4/site-packages. Also, make sure root doesn't
have /usr/local/bin on its PATH (which is a good rule anyway).


--
Harry George
PLM Engineering Architecture
Apr 10 '06 #4
Hi Harry,

* Harry George <ha************ @boeing.com> wrote:
Fabian Braennstroem <f.************ @gmx.de> writes:
Hi,

I am pretty new to python and will use it mainly in
combination with scientific packages. I am running ubuntu
breezy right now and see that some packages are out of date.
Do you have any suggestion, how I can get/keep the latest
python modules (e.g. scipy, numpy,...) on my ubuntu system?
I.e. does there exist any script/program, which downloads
and installs automatically the latest stable releases of selected
modules? It would be nice, if the program can remove the
installed modules, too!?

Or would it be easier to stick to apt/deb and create own
packages ...
Greetings!
Fabian


I find it helpful to leave the as-delivered Python (e.g.,
/usr/bin/python) as-is. It is being used to run your basic Linux
system. Screwing around with it can have nasty side effects. Instead
I build a new one at /usr/local, give it a unique name, and
upgrade/hack that one to my heart's content. E.g., if the base system
is using Python 2.2, you can be running Python 2.4 as
/usr/local/bin/py24, and add all the numerical packages you wish at
use/local/lib/python2.4/site-packages. Also, make sure root doesn't
have /usr/local/bin on its PATH (which is a good rule anyway).


Maybe, I should consider this, too. Thanks!

Greetings!
Fabian

Apr 14 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2756
by: Alexander Skwar | last post by:
Hello! I'm having problems getting PHP 4.3.3RC4 successfully to install on my HP-UX 11.00 server. After a (successfull?) compile, "make install" errors out with this error message: #############################################################################################################
3
4066
by: Rob Andrews | last post by:
I'm on a Red Hat 9 system, which has Python 2.2.2 installed, and I installed 2.3 separately into /home/rob/Python-2.3/ (creating the symbolic link "py23" to point to my 2.3 installation). Now I'm trying to work out the kinks in the process. Unable to run Idle using 2.3 the way I've got things set up, I created a super simple Tkinter test program that just pops up a Label widget. I pasted below an example of how the RH-provided 2.2 runs...
10
3080
by: Berthold Hoellmann | last post by:
Hello, When I use ./configure --with-thread --with-fpectl --with-signal-module \ --with-pymalloc --enable-shared --with-cxx=g++ make test on 2.3.3 I get
1
2949
by: Jerald | last post by:
Running python 2.3.4 on valgrind (a tool like purify which checks the use of uninitialized memory, etc), gives a lot of errors. See below. jfj@cluster:~/> python -V Python 2.3.4 jfj@cluster:~/> valgrind python ==10517== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
3
2014
by: jonathan | last post by:
hey all, I'd like to implement an application that is truly dynamic: the components are not only just known at runtime, but also the components are unknown at runtime: ie: some don't even ship with the application. When a new component is shipped, the application 'picks up' that component and drops it in to the interface (in this case a GUI button as well as an associated class with that gui buttion). The application then uses the...
11
9266
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
0
1244
by: venkatbo | last post by:
Hi folks, On i686 Linux, I would like to place my python modules as: <base_dir>/src/py-modules/*.py and use the cmd from <base_dire>: ...base_dir]$ python src/py-modules/setup.py install --prefix=<base_dir>/usr so the .py files and the corresponding compiled .pyc files are at: <base_dir>/usr/lib/python2.4/site-packacges/*.py
1
3462
by: Sorin Schwimmer | last post by:
Hi All, After a disaster in which I lost my whole harddrive, I decided to install the newest everything that I use. I put the latest Gentoo Linux, with gcc 4.1.1, installed tcl/tk 8.4.14 and tried Python 2.5. I tried with and without the suggested -fwrapv compiler option, and make gave me the same:
5
2204
by: jgelfand | last post by:
I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) 64-bit machine. Running "./configure --prefix="/ usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but I get the following error message when I run "make": building '_tkinter' extension gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall - Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/ local/yosi/Python-2.5.2/./Include...
0
8787
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9259
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6750
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4824
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.