numpy is not installed with Python2.

justin justpark78 at
Fri Aug 27 18:40:03 CEST 2010

My university has a cluster computer, on which I want to run my python
program that uses numpy.
I am installing my Python2.7 locally separated from the main system,
and trying to install numpy, attach it with Python2.7.
I used many different versions of numpys to make it happen, but I got
stuck with the same following error on every trial,

"[hp6 at login1 numpy]$ python2.7 install
Running from numpy source directory.Traceback (most recent call last):
  File "", line 210, in <module>
  File "", line 187, in setup_package
    from numpy.distutils.core import setup
  File "/users/hp6/DOWN/numpy/numpy/distutils/", line 25, in
    from numpy.distutils.command import config, config_compiler, \
  File "/users/hp6/DOWN/numpy/numpy/distutils/command/",
line 9, in <module>
    from distutils.command.build_ext import build_ext as old_build_ext
  File "/users/hp6/apps/python27/lib/python2.7/distutils/command/", line 13, in <module>
    from site import USER_BASE, USER_SITE
ImportError: cannot import name USER_BASE"

It seems the error is related to the inability of Python2.7 to process
"from site import USER_BASE, USER_SITE",
since the machine I succeeded to install numpy with Python2.7 doesn't
prompt an error from this command,
whereas this machine in which I failed to do so cannot handle this.

My question is:
How can I make Python2.7 to process this, since the manual says this
package is the one that's automatically turned on in startup.


More information about the Python-list mailing list