我正在用python脚本编写import mahotas as mt
。
我收到错误ImportError: No module named mahotas
所以我使用此命令进行安装
$ sudo -H pip install mahotas
但这给了我以下错误
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)
我不知道这里发生了什么。
答案 0 :(得分:0)
您使用什么代码?如果是Spyder,请尝试在工具中选择PYTHONPATH。将路径添加到/usr/local/lib/python3.5/dist-packages