标签: python
我正在
ImportError:没有名为lirc的模块
运行时
sudo python myprog.py
但是当我跑步
python myprog.py
(没有sudo)
我没问题。我必须使用sudo,因为我的代码需要root才能获得一组未缓存的可用wifi。
你知道是什么问题吗?
答案 0 :(得分:1)
尝试:
sudo -H pip2 install lirc
在我看来,您没有在系统级别安装lirc。