2017-06-27 19 views
1

asyncioのインストール中にエラーが発生しました。 pydiscoveryにはAsyncioが必要です。 Visual C++ for Python 2.7がインストールされていますが、この問題は修正されていません。 Windows 10と互換性がないためかもしれませんか?この問題に関する回避策を誰かが知っている場合は、助けてください。Python install 'asyncio'エラー:終了ステータス2でcl.exeが失敗しました

pip install asyncio 

.... 

    overlapped.c(68) : error C2065: 'PyExc_ConnectionRefusedError' : undeclared identifier 
    overlapped.c(68) : warning C4047: '=' : 'PyObject *' differs in levels of indirection from 'int' 
    overlapped.c(71) : error C2065: 'PyExc_ConnectionAbortedError' : undeclared identifier 
    overlapped.c(71) : warning C4047: '=' : 'PyObject *' differs in levels of indirection from 'int' 
    overlapped.c(714) : warning C4013: 'Py_MIN' undefined; assuming extern returning int 
    overlapped.c(716) : warning C4013: 'Py_MAX' undefined; assuming extern returning int 
    overlapped.c(1145) : warning C4013: 'PyUnicode_AsWideCharString' undefined; assuming extern returning int 
    overlapped.c(1145) : warning C4047: '=' : 'wchar_t *' differs in levels of indirection from 'int' 
    overlapped.c(1287) : error C2079: 'overlapped_module' uses undefined struct 'PyModuleDef' 
    overlapped.c(1288) : error C2065: 'PyModuleDef_HEAD_INIT' : undeclared identifier 
    overlapped.c(1288) : error C2099: initializer is not a constant 
    overlapped.c(1289) : warning C4047: 'initializing' : 'int' differs in levels of indirection from 'char [12]' 
    overlapped.c(1290) : error C2078: too many initializers 
    overlapped.c(1310) : warning C4098: 'PyInit__overlapped' : 'void' function returning a value 
    overlapped.c(1314) : warning C4098: 'PyInit__overlapped' : 'void' function returning a value 
    overlapped.c(1317) : warning C4098: 'PyInit__overlapped' : 'void' function returning a value 
    overlapped.c(1319) : warning C4013: 'PyModule_Create' undefined; assuming extern returning int 
    overlapped.c(1319) : warning C4047: '=' : 'PyObject *' differs in levels of indirection from 'int' 
    overlapped.c(1321) : warning C4098: 'PyInit__overlapped' : 'void' function returning a value 
    overlapped.c(1336) : warning C4098: 'PyInit__overlapped' : 'void' function returning a value 
    error: command 'C:\\Users\\marjoriet\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2 

    ---------------------------------------- 
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\marjor~1\\appdata\\local\\temp\\pip-build-uektzl\\asyncio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\marjor~1\appdata\local\temp\pip-zyzgic-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\marjor~1\appdata\local\temp\pip-build-uektzl\asyncio\`enter code here` 

答えて

1

Asyncio長いが2.7

のサポートを捨てtrollius

+0

と呼ばれるPythonの2.7のサポートを提供するために、フォークがあったように私はpydiscovery.pyコードを更新し、trollius代わりのasyncioをインストールしているようだ、と出来た!ありがとうございました! – matdg

+0

これがうまくいく場合は、upv​​ote +の回答に感謝します。 :D – xNinjaKittyx

関連する問題