我在我的Windows机器上安装了python 3.4.4并试图在我的机器上安装扭曲的库。
>>>python
Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)] on win32
这是我目前的pip冻结输出
>>>pip freeze
constantly==15.1.0
incremental==16.10.1
requests==2.12.4
zope.interface==4.3.3
当我尝试通过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\
答案 0 :(得分:0)
也许这对你有用。
pip install wheel
pip install D:\Documents\Downlaods\Twisted-17.1.0-cp27-cp27m-win32.whl
27 对应 python 2.7
此处提供更多信息:http://zhangzhenyu.com.cn/blog/install-scrapy-in-python34/