lets_try
lets_try

Reputation: 15

trouble with importing python modules

I am trying to import Python packages that I had previously installed but I keep getting this error when trying to import it

"ImportError: No module named gdal"

In the images attached (in the link :P) you can see that the package python-gdal and python-numpy are installed. I am also attaching the python output.

enter image description here enter image description here

P.S = I am using Ubuntu and running python from the terminal.

Upvotes: 0

Views: 117

Answers (1)

You have possibly installed a non-Ubuntu version of Python - Anaconda - yet these packages are installed into the system Python. You should probably remove Anaconda, and/or run the system Python explicitly as /usr/bin/python.

Upvotes: 3

Related Questions