[Numpy-discussion] numpy1.6.1 install fortran compiler error
Derek Homeier
derek at astro.physik.uni-goettingen.de
Tue Dec 20 15:23:24 EST 2011
On 20.12.2011, at 9:01PM, Jack Bryan wrote:
> customize Gnu95FCompiler using config
> C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
>
> compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/remote/dcnl/Ding/backup_20100716/python272/include/python2.7 -c'
> gcc: _configtest.c
> gcc -pthread _configtest.o -o _configtest
> success!
> removing: _configtest.c _configtest.o _configtest
> C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
>
>
> ........................
>
> compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/mypath/python272/include/python2.7 -c'
> gcc: _configtest.c
> gcc -pthread _configtest.o -o _configtest
> _configtest
> failure.
>
The blas failures further up are non-fatal, but I am not sure about the _configtest.c,
or why it once succeeds, then fails again - anyway the installation appears to have
finished.
> at the end:
>
> running install_egg_info
> Removing /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-info
> Writing /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-info
> running install_clib
>
> Then
>
> I got:
>
> python
> Python 2.7.2 (default, Dec 20 2011, 12:32:10)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> import numpy
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named numpy
>
>
> I have updated PATH for bin and lib of numpy.
>
You will need '/mypath/numpy/lib/python2.7/site-packages' in your
PYTHONPATH - have you done that, and does it show up with
>>> import sys
>>> sys.path()
in the Python shell?
Cheers,
Derek
More information about the NumPy-Discussion
mailing list