473,387 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

More than one python in a linux

Hi,

I've build and installed python 2.2 and python2.3 in a linux box.
Now i want to install some packages (Numeric, wxPython and
scipy). I've install Numeric and wxPython for python2.3 without
problem (python2.3 setup.py install ... and so on). But when I try

python2.2 setup.py install

I get the following error (for wxpython)

running build_py
copying wxPython/__version__.py -> build/lib.linux-i686-2.2/wxPython
running build_ext
error: invalid Python installation: unable to open /usr/lib/python2.2/config/Makefile (No such file or directory)

and (for numeric something similar)

Traceback (most recent call last):
File "setup.py", line 195, in ?
ext_modules = ext_modules
File "/var/tmp/python-2.2.2-build//usr/lib/python2.2/distutils/core.py", line 138, in setup
File "/var/tmp/python-2.2.2-build//usr/lib/python2.2/distutils/dist.py", line 893, in run_commands
File "/var/tmp/python-2.2.2-build//usr/lib/python2.2/distutils/dist.py", line 912, in run_command
File "/usr/lib/python2.2/cmd.py", line 112, in ensure_finalized
line = self.cmdqueue[0]
File "/var/tmp/python-2.2.2-build//usr/lib/python2.2/distutils/command/install.py", line 267, in finalize_options
File "/var/tmp/python-2.2.2-build//usr/lib/python2.2/distutils/sysconfig.py", line 421, in get_config_vars
File "/var/tmp/python-2.2.2-build//usr/lib/python2.2/distutils/sysconfig.py", line 326, in _init_posix
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python2.2/config/Makefile (No such file or directory)

Any idea about what can I do?
Thaks in advance

Zunbeltz
--
Remove XXX from email: zu******@wm.lc.ehu.esXXX
Jul 18 '05 #1
3 2916
At some point, Zunbeltz Izaola <zu******@wm.lc.ehu.es.XXX> wrote:
Hi,

I've build and installed python 2.2 and python2.3 in a linux box.
Now i want to install some packages (Numeric, wxPython and
scipy). I've install Numeric and wxPython for python2.3 without
problem (python2.3 setup.py install ... and so on). But when I try

python2.2 setup.py install

I get the following error (for wxpython)

running build_py
copying wxPython/__version__.py -> build/lib.linux-i686-2.2/wxPython
running build_ext
error: invalid Python installation: unable to open
/usr/lib/python2.2/config/Makefile (No such file or directory)


You probably don't have the development package for python2.2
installed (python2.2-dev or python2.2-devel or something).

--
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)physics(dot)mcmaster(dot)ca
Jul 18 '05 #2
co**********@physics.mcmaster.ca (David M. Cooke) writes:

You probably don't have the development package for python2.2
installed (python2.2-dev or python2.2-devel or something).

You are right! I've installed it and it semms that now all goes well.
Thanks.

Zunbeltz
--
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)physics(dot)mcmaster(dot)ca


--
Remove XXX from email: zu******@wm.lc.ehu.esXXX
Jul 18 '05 #3
Zunbeltz Izaola <zu******@wm.lc.ehu.es.XXX> wrote in message news:<m1************@llcpxqy.lc.ehu.es>...
Hi,

I've build and installed python 2.2 and python2.3 in a linux box.
I think we need to know...

* How you built those Python releases: compiled from source, used
a source RPM or other source package, used a binary RPM or other
binary package (which really isn't building, however).

* What kind of Linux distribution you used and whether it had
Python installed already.
Now i want to install some packages (Numeric, wxPython and
scipy). I've install Numeric and wxPython for python2.3 without
problem (python2.3 setup.py install ... and so on). But when I try

python2.2 setup.py install
[...]
error: invalid Python installation: unable to open /usr/lib/python2.2/config/Makefile (No such file or directory)


This suggests that you don't have the development stuff installed for
that particular Python 2.2 installation. I note that /usr is the
prefix, meaning that either...

* You built Python from source and specified /usr as the prefix
instead of using the default /usr/local as prefix. This is
unlikely as the Makefile would probably be where setup.py is
looking.

* You installed a package which put the installation in /usr
(eg. /usr/bin/python2.2) but which didn't include the
development stuff. That might mean that you need to find the
corresponding "devel" package.

* You already have /usr/bin/python2.2 installed as part of the
Linux distribution and it is this program that is being run
when you attempt to install things using setup.py, despite
the possible existence of a Python 2.2 installation in
/usr/local. In this case, verify using "which python2.2" the
actual program being run and adjust your PATH environment
variable to use your own Python 2.2 installation; for example:

PATH=/usr/local:$PATH python2.2 setup.py install

I hope this helps you track down the problem. Multiple Python
installations are easy enough to manage and use, especially if you
remember to use python2.2 and python2.3 (as you've done) to control
the version you want to use.

Paul
Jul 18 '05 #4

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

Similar topics

8
by: Will | last post by:
I just discovered Python and looked briefly at one of the tutorials for beginners... It looks a lot like the old Command line Basic... I'm sure it does much more but... 1 - Can you create...
12
by: Claudio Grondi | last post by:
I have just discovered the existance of Puppy Linux which is a complete operating system with a suite of GUI apps, only about 50 - 60M booting directly off the CDROM ( http://www.puppylinux.org...
25
by: redefined.horizons | last post by:
I've traditionally been a Java developer, although I play around with LISP. I recently migrated to Linux and I was exploring Mono as an option for development on Linux. However, I've had some...
4
by: Michael | last post by:
Hi! (OK, slightly silly subject line :) I'm extremely pleased to say - Kamaelia 0.4.0 has been released! What's New & Changed? =====================
1
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...
8
by: John Nagle | last post by:
I've been running M2Crypto successfully using Python 2.4 on Windows 2000, and now I'm trying to get it to work on Python 2.3.4 on Linux. Attempting to initialize a context results in Traceback...
15
by: John Nagle | last post by:
I've been installing Python and its supporting packages on a dedicated server with Fedora Core 6 for about a day now. This is a standard dedicated rackmount server in a colocation facility,...
2
by: enquiring mind | last post by:
-learning python with limited knowledge of linux. -get error msg 21 "file or directory does not exist" -running Suse linux 10. -haven't had a problem before - rebooted several times. -python...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.