No module named mahotas but it shows installed

1.1k Views Asked by At

I am writing import mahotas as mt in my python script. I get the error ImportError: No module named mahotas

So I used this command to install

$ sudo -H pip install mahotas

But it gives me the following error

Requirement already satisfied: mahotas in /usr/local/lib/python3.5/dist-packages (1.4.5)
Requirement already satisfied: numpy in /usr/local/lib/python3.5/dist-packages (from mahotas) (1.16.2)

I have no idea what's happening here.

1

There are 1 best solutions below

2
Pierre BdsAstres Lupin On

What are you using for code ? If Spyder, try select PYTHONPATH in tools. Add a path to /usr/local/lib/python3.5/dist-packages