2014-07-11 123 views
1

我似乎无法在我的visual studio python项目中安装RPi.GPIO库。我使用点和易于安装,错误总是相同的。visual studio中的RPI.GPIO ISSUE

Installing 'RPi.GPIO' 
Searching for RPi.GPIO 
Reading https://pypi.python.org/simple/RPi.GPIO/ 
Best match: RPi.GPIO 0.5.5 
Downloading https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.5.tar.gz#md5=8cbc1cb0c0f1a4d93bf1efe1a745f1f0 
Processing RPi.GPIO-0.5.5.tar.gz 
Writing c:\users\jponga~1\appdata\local\temp\easy_install-ior49_\RPi.GPIO-0.5.5\setup.cfg 
Running RPi.GPIO-0.5.5\setup.py -q bdist_egg --dist-dir c:\users\jponga~1\appdata\local\temp\easy_install-ior49_\RPi.GPIO-0.5.5\egg-dist-tmp-whq5_e 
py_gpio.c 
c:\users\jpongallo\appdata\local\temp\easy_install-ior49_\rpi.gpio-0.5.5\source\py_gpio.c(101) : warning C4700: uninitialized local variable 'i' used 
c_gpio.c 
source/c_gpio.c(26) : fatal error C1083: Cannot open include file: 'sys/mman.h': No such file or directory 
error: Setup script exited with error: command 'c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\cl.exe' failed with exit status 2 
'RPi.GPIO' failed to install. Exit code: 1 

我试着下载Cygwin并没有希望。 如果有人可以给我一个编译版本的RPi.GPIO,这样我就可以弹出可能工作的python2.7文件夹中的文件夹。

有没有其他解决方案?

回答