More than one python in a linux

Zunbeltz Izaola zunbeltz at wm.lc.ehu.es.XXX
Thu Jan 15 09:19:14 CET 2004


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: zunbeltz at wm.lc.ehu.esXXX



More information about the Python-list mailing list