python安装模块手动覆盆子pi

时间:2016-08-19 13:18:05

标签: python module raspberry-pi

我必须手动安装模块insteon.py。

所以我将模块复制到/usr/lib/python2.7/dist-packages和usr / local / lib / python2.7 / dist-packages中。

当我尝试导入模块insteon.py时,它会给我这个错误:

Traceback (most recent call last):
File "main.py", line 15, in <module>
    from insteon import Insteon
File "/usr/lib/python2.7/dist-packages/insteon.py", line 25, in <module>
    config = configuration.loadConfig()
AttributeError: Configuration instance has no attribute 'loadConfig'

1 个答案:

答案 0 :(得分:0)

如果你愿意,可以在这里下载脚本

https://github.com/bynds/makevoicedemo