標籤:ken manage .com 裝包 highlight target 出現 via temp
1.
安裝Twisted
直接pip install Twisted
然後報錯
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools ----------------------------------------Command "c:\users\zb\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;__file__=‘C:\\Users\\zb\\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‘))" 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_\TwistedYou 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.
最後一句提升讓升級pip,然後運行 python -m pip install --upgrade pip 運行
這時候我們成功升級了pip了。然後重新 安裝pip install twisted運行之後看到出現 如下錯誤
building ‘twisted.test.raiser‘ extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
字面意思看需要安裝Microsoft Visual C++ 14.0 ,但是這個東西安裝起來很麻煩,而且安裝上了也不一定準確,這個時候呢,我們一般就考慮第三方的python模組安裝包
http://www.lfd.uci.edu/~gohlke/pythonlibs/
然後搜尋twisted,下載對應的版本,cp36就是python3.6x版本用的,win32是指的python的位元,cmd輸入python查看python的版本,這裡我就下載下面藍色x
https://download.lfd.uci.edu/pythonlibs/t5yhk4lc/Twisted-18.4.0-cp36-cp36m-win32.whl
windows安裝scrapy