在windows 10上安装twisted时出错。INCLUDE环境变量为空

2024-09-28 01:29:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经在我的windows机器上安装了python3.4.4,并试图在我的机器上安装twisted库。在

>>>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

^{pr2}$

当我试图通过pip安装twisted时,我得到了这个错误。在

发出命令-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\

Tags: installpiptestbuildsrclibtwistedmail

热门问题