Command "c:\python36\python.exe -u -c "import setuptools, tokenize;__file__=
=
‘C:\\Users\\yaya\\AppData\\Local\\Temp\\pip-build-10ew2ma_\\Twisted\\setup.py‘
;f
=
getattr
(tokenize,
‘open‘
,
open
)(__file__);code
=
f.read().replace(
‘\r\n‘
,
‘\n‘
);f.close();
exec
(
compile
(code, __file__,
‘exec‘
))
"<br> install --record C:\Users\zb\AppData\Local\Temp\pip-85cixft1-record\install-record.txt --single-version-externally-managed --compile"
failed with error code
1
in
C:\Users\zb\AppData\Local\Temp\pip
-
build
-
10ew2ma_
\Twisted\
You are using pip version
9.0
.
1
, however version
10.0
.
1
is
available.
You should consider upgrading via the
‘python -m pip install --upgrade pip‘
command.
升级 python -m pip install --upgrade pip 升级成功后在重新安装 还是报错 所以尝试着安装twisted库 (https://www.lfd.uci.edu/~gohlke/pythonlibs/)
Twisted, an event-driven networking engine.
- Twisted?18.7.0?cp27?cp27m?win32.whl
- Twisted?18.7.0?cp27?cp27m?win_amd64.whl
- Twisted?18.7.0?cp34?cp34m?win32.whl
- Twisted?18.7.0?cp34?cp34m?win_amd64.whl
- Twisted?18.7.0?cp35?cp35m?win32.whl
- Twisted?18.7.0?cp35?cp35m?win_amd64.whl
- Twisted?18.7.0?cp36?cp36m?win32.whl
- Twisted?18.7.0?cp36?cp36m?win_amd64.whl
- Twisted?18.7.0?cp37?cp37m?win32.whl
- Twisted?18.7.0?cp37?cp37m?win_amd64.whl
我的是 Twisted?18.7.0?cp36?cp36m?win_amd64.whl,你需要找到你的对应版本,然后下载。之后运行 pip installTwisted?18.7.0?cp36?cp36m?win_amd64.whl 成功后,在重新安装scrapy
原文地址:https://www.cnblogs.com/wuxiaoshi/p/9692220.html