2017-01-06 35 views
0

我在我的Windows機器上安裝了python 3.4.4,並試圖在我的機器上安裝扭曲的庫。在Windows 10上安裝扭曲錯誤。INCLUDE環境變量爲空

>>>python 
Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)] on win32 

這裏是我的點子凍結輸出目前

>>>pip freeze 
constantly==15.1.0 
incremental==16.10.1 
requests==2.12.4 
zope.interface==4.3.3 

當我試圖安裝扭曲通過PIP我得到這個錯誤。

命令發出 - pip install twisted

copying src\twisted\internet\test\fake_CAs\thing2.pem -> build\lib.win-amd64-3.4\twisted\internet\test\fake_CAs 
    creating build\lib.win-amd64-3.4\twisted\mail\test 
    copying src\twisted\mail\test\rfc822.message -> build\lib.win-amd64-3.4\twisted\mail\test 
    copying src\twisted\mail\test\server.pem -> build\lib.win-amd64-3.4\twisted\mail\test 
    copying src\twisted\words\im\instancemessenger.glade -> build\lib.win-amd64-3.4\twisted\words\im 
    copying src\twisted\words\xish\xpathparser.g -> build\lib.win-amd64-3.4\twisted\words\xish 

    running build_ext 
    building 'twisted.test.raiser' extension 
    error: INCLUDE environment variable is empty 

    ---------------------------------------- 
Command "c:\users\anurag.sharma\envs\dummy\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ANURAG~1.SHA\\AppData\\Local\\Temp\\pip-build-39eej_vn\\twisted\\se 
tup.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\ANURAG~1.SHA\AppData\L 
ocal\Temp\pip-zzu50qbz-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\anurag.sharma\envs\dummy\include\site\python3.4\twisted" failed 
with error code 1 in C:\Users\ANURAG~1.SHA\AppData\Local\Temp\pip-build-39eej_vn\twisted\ 

回答