[SciPy-user] numpy installation problems: please help!

David M. Cooke cookedm at physics.mcmaster.ca
Mon May 22 21:18:43 EDT 2006


On Tue, May 23, 2006 at 01:48:59AM +0100, Bhismadev Chakrabarti wrote:
> dear scipy/numpy experts,
> 
> i am trying to set up scipy in my (multi-user) debian system, and am facing
> some teething trouble in installing its prerequisite, numpy. the error
> message is pasted below.
> i have installed Python 2.4.3 on my userspace, and the installation worked
> fine. however, while installing numpy, i find ( see the last two lines of
> this error message) it is trying to access /usr/lib/python2.3 which is an
> installation by the system administrator that i don't want it to look for.

Are you sure that the command 'python' you use below is actually the one
you've installed (i.e., 2.4)? It looks like it's actually 2.3, and that you do
not have the python2.3-dev package installed. Double-check the version
with 'python -V'.

If you're sure it's the right one, check if you have a PYTHONPATH environment
variable set that may be trying to pick up the 2.3 library.

It could be easier to ask your sysadmin to install python 2.4 (it's in the
latest stable Debian release, and in unstable and testing), and make sure
that the python2.4-dev package is installed.

> i would be very grateful if someone could please suggest me a way so that
> numpy ( and later on, scipy) does not look for other installations of Python
> and basically help me get this thing to work!
> 
> i really appreciate any help!
> many thanks,
> bhisma
> 
> 
> psych5$ cd ../numpy-0.9.8
> psych5$ rm -fr build
> psych5$ python setup.py install
> Running from numpy source directory.
> non-existing path in 'numpy/distutils': 'site.cfg'
> F2PY Version 2_2522
> Traceback (most recent call last):
>  File "setup.py", line 84, in ?
>    setup_package()
>  File "setup.py", line 77, in setup_package
>    configuration=configuration )
>  File "/data2/bc249/new_dir/Python-2.4.3/numpy-0.9.8
> /numpy/distutils/core.py",
> line 140, in setup
>    config = configuration()
>  File "setup.py", line 43, in configuration
>    config.add_subpackage('numpy')
>  File "/data2/bc249/new_dir/Python-2.4.3/numpy-0.9.8
> /numpy/distutils/misc_util.
> py", line 740, in add_subpackage
>    caller_level = 2)
>  File "/data2/bc249/new_dir/Python-2.4.3/numpy-0.9.8
> /numpy/distutils/misc_util.
> py", line 723, in get_subpackage
>    caller_level = caller_level + 1)
>  File "/data2/bc249/new_dir/Python-2.4.3/numpy-0.9.8
> /numpy/distutils/misc_util.
> py", line 670, in _get_configuration_from_setup_py
>    config = setup_module.configuration(*args)
>  File "./numpy/setup.py", line 9, in configuration
>    config.add_subpackage('core')
>  File "/data2/bc249/new_dir/Python-2.4.3/numpy-0.9.8
> /numpy/distutils/misc_util.
> py", line 740, in add_subpackage
>    caller_level = 2)
>  File "/data2/bc249/new_dir/Python-2.4.3/numpy-0.9.8
> /numpy/distutils/misc_util.
> py", line 723, in get_subpackage
>    caller_level = caller_level + 1)
>  File "/data2/bc249/new_dir/Python-2.4.3/numpy-0.9.8
> /numpy/distutils/misc_util.
> py", line 670, in _get_configuration_from_setup_py
>    config = setup_module.configuration(*args)
>  File "numpy/core/setup.py", line 11, in configuration
>    from numpy.distutils.system_info import get_info, default_lib_dirs
>  File "/data2/bc249/new_dir/Python-2.4.3/numpy-0.9.8
> /numpy/distutils/system_inf
> o.py", line 152, in ?
>    so_ext = get_config_vars('SO')[0] or ''
>  File "/usr/lib/python2.3/distutils/sysconfig.py", line 490, in
> get_config_vars
>    func()
>  File "/usr/lib/python2.3/distutils/sysconfig.py", line 360, in _init_posix
>    raise DistutilsPlatformError(my_msg)
> distutils.errors.DistutilsPlatformError: invalid Python installation: unable
> to
> open /usr/lib/python2.3/config/Makefile (No such file or directory)
> psych5$
> 
> 
> -- 
> _______________________________
> 
> Bhismadev Chakrabarti
> Department of Psychiatry
> University of Cambridge
> Cambridge, UK

> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user


-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke                      http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca




More information about the SciPy-User mailing list