当我尝试安装uinput时,我得到了一个错误,我尝试了PIP和easy_install。我还试着从tar包中安装“手动”。我总是会犯错误。下面是使用easy_install安装时遇到的错误。
你能指导我怎么修吗?
rpi@torpi ~/scripts $ sudo easy_install python-uinput
Searching for python-uinput
Reading http://pypi.python.org/simple/python-uinput/
Best match: python-uinput 0.10.2
Downloading https://pypi.python.org/packages/source/p/python-uinput/python-uinput-0.10.2.tar.gz#md5=abbbbfc50d03a0585a5231d9396f78bd
Processing python-uinput-0.10.2.tar.gz
Running python-uinput-0.10.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZWLsct/python-uinput-0.10.2/egg-dist-tmp-bPeztQ
/usr/bin/ld: cannot find libudev.so
collect2: ld returned 1 exit status
error: Setup script exited with error: command 'gcc' failed with exit status 1发布于 2014-12-08 15:56:43
我无法获得正确安装的输入,因此,我最终使用了埃夫德夫。
发布于 2015-04-08 02:08:18
有这个问题,然后用
sudo apt-get install libudev-dev发布于 2015-12-28 03:55:45
我知道这是一个很老的问题,但我也遇到了同样的问题,运行sudo apt-get install libudev-dev对我很有帮助。另外,确保运行pip与sudo。
https://stackoverflow.com/questions/27214053
复制相似问题