Numeric Python Installation woes

Jesper Olsen jolsen at mailme.dk
Thu Feb 28 06:07:51 EST 2002


I am not sure distutils were part of python 1.5,
and the most recent Numeric package (21) requires python 22 anyway...

Does distutils work for you otherwise, or is this only a Numeric problem?

I have recently installed Numeric 21 on both windows and Linux,
without any problems.

On linux, unless you are the super user, you should use the
--home option, to specify where you want to install the package.

Cheers
Jesper


Karthikesh Raju <karthik at james.hut.fi> wrote in message news:<m3elj6ocvs.fsf at mycomp.tky.hut.fi>...
> 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