【发布时间】:2013-03-10 23:46:34
【问题描述】:
root@raspberrypi:~# python
Python 2.7.3 (default, Jan 13 2013, 11:20:46)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gps import gps
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name gps
>>> exit ()
它似乎不起作用。 已安装的 debian 软件包: gpsd, gpsd-clients, python-gps, libgps20, libgps-dev
【问题讨论】:
-
命令“pydoc modules”确实返回“gps”
-
import gps工作吗? -
是的,“导入 gps”有效
标签: python python-2.7 gps