Numeric Python Installation woes

Karthikesh Raju karthik at james.hut.fi
Wed Feb 27 16:04:07 EST 2002


Hi All,

Tried installing Numeric Python from the sources as:

>> python setup.py install

error was:
  File "setup.py", line 170
    print >>rpm_script, rpm_install_text
           ^
SyntaxError: invalid syntax

When i tried 

>> python2 setup.py install 

got this:
running install
Traceback (most recent call last):
  File "setup.py", line 187, in ?
    ext_modules = ext_modules
  File "/var/tmp/python2-2.2-root/usr/lib/python2.2/distutils/core.py", line 138, in setup
  File "/var/tmp/python2-2.2-root/usr/lib/python2.2/distutils/dist.py", line 893, in run_commands
  File "/var/tmp/python2-2.2-root/usr/lib/python2.2/distutils/dist.py", line 912, in run_command  File "/usr/lib/python2.2/cmd.py", line 112, in ensure_finalized
    
  File "/var/tmp/python2-2.2-root/usr/lib/python2.2/distutils/command/install.py", line 268, in finalize_options
  File "/var/tmp/python2-2.2-root/usr/lib/python2.2/distutils/sysconfig.py", line 408, in get_config_vars
  File "/var/tmp/python2-2.2-root/usr/lib/python2.2/distutils/sysconfig.py", line 313, in _init_posix
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python2.2/config/Makefile (No such file or directory)


No clues, Am i missing something. 

i have both python 1.5 and python 2.2 and apparently 2.2 version does
not respond to the upward arrow key for the previous command. Seems
like i have completely played around with  something major.

Any help would be great,

Thankx in advance
karthik



More information about the Python-list mailing list