Tag Archives: Failed building wheel for Twisted

Failed building wheel for Twisted

With multi-dimensional model as the core, let the factory digital transformation and upgrading “within reach”>>>

During the process of installing the scrapy framework, PIP install scrapy reports an error message:

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

Solution:

Website: https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

Choose twisted related to the python version of your computer. Download and save to local

Twisted‑17.9.0‑cp36‑cp36m‑win_ Amd64.whl AMD64: represents 64 bits, and 36 represents Python version 3.6

Then execute PIP install XX/XX/twisted − 17.9.0 − cp36 − cp36m − win_ amd64.whl

The execution result is shown in the figure

(jobbole) D:\virtualenv>pip install D:\virtualenv\jobbole\Scripts\Twisted-17.9.0-cp36-cp36m-win_amd64.whl
Processing d:\virtualenv\jobbole\scripts\twisted-17.9.0-cp36-cp36m-win_amd64.whl
Requirement already satisfied: incremental>=16.10.1 in d:\virtualenv\jobbole\lib\site-packages (from Twisted==17.9.0)
Requirement already satisfied: zope.interface>=4.0.2 in d:\virtualenv\jobbole\lib\site-packages (from Twisted==17.9.0)
Requirement already satisfied: Automat>=0.3.0 in d:\virtualenv\jobbole\lib\site-packages (from Twisted==17.9.0)
Requirement already satisfied: constantly>=15.1 in d:\virtualenv\jobbole\lib\site-packages (from Twisted==17.9.0)
Requirement already satisfied: hyperlink>=17.1.1 in d:\virtualenv\jobbole\lib\site-packages (from Twisted==17.9.0)
Requirement already satisfied: setuptools in d:\virtualenv\jobbole\lib\site-packages (from zope.interface>=4.0.2->Twisted==17.9.0)
Requirement already satisfied: six in d:\virtualenv\jobbole\lib\site-packages (from Automat>=0.3.0->Twisted==17.9.0)
Requirement already satisfied: attrs in d:\virtualenv\jobbole\lib\site-packages (from Automat>=0.3.0->Twisted==17.9.0)
Requirement already satisfied: idna>=2.5 in d:\virtualenv\jobbole\lib\site-packages (from hyperlink>=17.1.1->Twisted==17.9.0)
Installing collected packages: Twisted
Successfully installed Twisted-17.9.0

Then, you can install the sketch successfully

(jobbole) D:\virtualenv>pip install scrapy