Thread: Problem with petsc4py when reading importing it from a python file...
i run python program , :
s117555@ubuntu:~/sumb_2/sumb/python/examples$ python nk_test.py
traceback (most recent call last):
file "nk_test.py", line 17, in <module>
import petsc4py
importerror: no module named petsc4py
s117555@ubuntu:~/sumb_2/sumb/python/examples$
know have petsc4py since when write sudo easy_install petsc4py following:
s117555@ubuntu:~/sumb_2/sumb/python/examples$ sudo easy_install petsc4py
[sudo] password s117555:
searching petsc4py
best match: petsc4py 3.3
petsc4py 3.3 active version in easy-install.pth
using /usr/local/lib/python2.7/dist-packages
processing dependencies petsc4py
finished processing dependencies petsc4py
s117555@ubuntu:~/sumb_2/sumb/python/examples$
realy dont know going on..? why is not in python library?? or getting confused..
it looks easy_install may have installed modules location that's not part of $pythonpath somehow. first time using easy_install, , can confirm configured correctly? here's docs on configuring in case:
http://packages.python.org/distribut...tion-locations
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] Problem with petsc4py when reading importing it from a python file...
Ubuntu
Comments
Post a Comment