在 Windows 10 上安装扭曲时出错.包含环境变量为空



我已经在我的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 freeze
constantly==15.1.0
incremental==16.10.1
requests==2.12.4
zope.interface==4.3.3

当我尝试通过 pip 安装扭曲时,我收到此错误。

发出命令 - pip install twisted

    copying srctwistedinternettestfake_CAsthing2.pem -> buildlib.win-amd64-3.4twistedinternettestfake_CAs
    creating buildlib.win-amd64-3.4twistedmailtest
    copying srctwistedmailtestrfc822.message -> buildlib.win-amd64-3.4twistedmailtest
    copying srctwistedmailtestserver.pem -> buildlib.win-amd64-3.4twistedmailtest
    copying srctwistedwordsiminstancemessenger.glade -> buildlib.win-amd64-3.4twistedwordsim
    copying srctwistedwordsxishxpathparser.g -> buildlib.win-amd64-3.4twistedwordsxish
    running build_ext
    building 'twisted.test.raiser' extension
    error: INCLUDE environment variable is empty
    ----------------------------------------
Command "c:usersanurag.sharmaenvsdummyscriptspython.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('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersANURAG~1.SHAAppDataL
ocalTemppip-zzu50qbz-recordinstall-record.txt --single-version-externally-managed --compile --install-headers c:usersanurag.sharmaenvsdummyincludesitepython3.4twisted" failed
 with error code 1 in C:UsersANURAG~1.SHAAppDataLocalTemppip-build-39eej_vntwisted

也许这对你有用。

pip install wheel
pip install D:DocumentsDownlaodsTwisted-17.1.0-cp27-cp27m-win32.whl

这 27 对应于 python 2.7

更多信息请见:http://zhangzhenyu.com.cn/blog/install-scrapy-in-python34/

相关内容

最新更新