Ошибка установки пакетов Python в Windows 10 - PullRequest
0 голосов
/ 20 октября 2018

Я пробовал pip и easy_install с парой разных пакетов (RPi.GPIO, GPIO), и каждый из них возвращает одну и ту же ошибку при запуске:

C:\Python37\Scripts>easy_install RPIO
Searching for RPIO
Reading https://pypi.org/simple/RPIO/
Downloading https://files.pythonhosted.org/packages/29/05/6884572923c57ff488fdf5c4ab887deb9edb2515afbcb49be087c95ac698/RPIO-0.10.0.tar.gz#sha256=b89f75dec9de354681209ebfaedfe22b7c178aacd91a604a7bd6d92024e4cf7e
Best match: RPIO 0.10.0
Processing RPIO-0.10.0.tar.gz
Writing C:\Users\arnjm\AppData\Local\Temp\easy_install-ytbbi35y\RPIO-0.10.0\setup.cfg
Running RPIO-0.10.0\setup.py -q bdist_egg --dist-dir C:\Users\arnjm\AppData\Local\Temp\easy_install-ytbbi35y\RPIO-0.10.0\egg-dist-tmp-fbmuup99
py_gpio.c
source/c_gpio/py_gpio.c(362): error C2040: 'setmode': 'PyObject *(PyObject *,PyObject *)' differs in levels of indirection from 'int (int,int)'
source/c_gpio/py_gpio.c(431): warning C4028: formal parameter 1 different from declaration
source/c_gpio/py_gpio.c(431): warning C4028: formal parameter 2 different from declaration
source/c_gpio/py_gpio.c(431): warning C4047: 'initializing': 'PyCFunction' differs in levels of indirection from 'int (__cdecl *)(int,int)'
error: Setup script exited with error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

Надеюсь, кто-то уже решил это.

...