如何在 Ubuntu 16.04 上安装 python-gasp?

How can I install python-gasp on Ubuntu 16.04?

我使用 Ubuntu 16.04 系统,我想为 python 安装 gasp。 我被告知以下命令可以帮助我安装 python-gasp:

 $ sudo apt-get install python-gasp

我尝试了命令,但似乎不起作用,因为当我 运行

from gasp import 

它返回为

"No module named gasp".

然后我用$ whereis python-gasp查看我安装的python-gasp的位置,返回的是/usr/share/python-gasp

我不知道发生了什么。 如何才能成功使用gasp

python-gasp 是 Python 2 的模块。我没有看到 Python 3 的 python3-gasp(Linux Mint 17 基于 Ubuntu 14.04) 但也许你有 Ubuntu 16.

Ubuntu 16 默认使用 Python 3. 也许你需要安装 Python 2 才能使用 gasp.

或者您可能已经安装了。尝试 python2which python2 找到路径。