Sublime Forum

No module even thou its in the PATHPYTHON

#1

i can’t get to import the numpy module:
import sys, numpy
print sys.path

a = numpy.array ([1,2],[3,4]])
b = numpy.array([1,2],[3,4]])
c = a*b
print c
print a


Output:
‘/usr/lib64/python27.zip’, ‘/usr/lib64/python2.7’, ‘/usr/lib64/python2.7/plat-linux2’, ‘/usr/lib64/python2.7/lib-tk’, ‘/usr/lib64/python2.7/lib-old’, ‘/usr/lib64/python2.7/lib-dynload’, ‘/usr/lib64/python2.7/site-packages’, ‘/usr/lib64/python2.7/site-packages/gtk-2.0’, ‘/usr/lib/python2.7/site-packages’]
1 4]
9 16]]
[1 2]
[3 4]]
[Finished in 0.2s]

find / -name numpy :

/usr/include/numpy
/usr/lib64/python2.7/site-packages/numpy
/usr/lib64/python2.7/site-packages/numpy/numarray/include/numpy

why am i getting this problem?

0 Likes

#2

i was getting this problem because i had a CodeIntel package installed. Replaced it with JEDI. Import and autocompleteion works fine.

0 Likes