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文件夾中的文件夾。
有沒有其他解決方案?