Hi, I have set up PYTHONPATH :
>>> sys.path['', '/mypath/numpy/lib/python2.7/site-packages', '/
mypath/python272/lib/python27.zip', '/
mypath/python272/lib/python2.7', '/
mypath/python272/lib/python2.7/plat-linux2', '/
mypath /python272/lib/python2.7/lib-tk', '/
mypath/python272/lib/python2.7/lib-old', '/
mypath /python272/lib/python2.7/lib-dynload', '/
mypath/python272/lib/python2.7/site-packages']
But still errors: 
>>> import numpyTraceback (most recent call last):  File "<stdin>", line 1, in 
>>> <module>  File "numpy/__init__.py", line 153, in <module>    import 
>>> polynomial  File "numpy/polynomial/__init__.py", line 18, in <module>    
>>> from polynomial import Polynomial  File "numpy/polynomial/polynomial.py", 
>>> line 60, in <module>    from polytemplate import polytemplateImportError: 
>>> cannot import name polytemplate
Any help is appreciated. 
Thanks
> From: de...@astro.physik.uni-goettingen.de
> Date: Tue, 20 Dec 2011 21:23:24 +0100
> To: numpy-discussion@scipy.org
> Subject: Re: [Numpy-discussion] numpy1.6.1 install fortran compiler error
> 
> 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
> 
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
                                          
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to