Installation problem of scrapy (window10)

1. First ctrl+R, cmd, open the command window, enter the following command:

pip install scrapy

The result is this error:

 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:\ProgramData\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\gc\\AppData\\Local\\Temp\\pip-build-c4a_58dh\\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\gc\AppData\Local\Temp\pip-ndrih_cv-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\gc\AppData\Local\Temp\pip-build-c4a_58dh\Twisted\


Baidu a bit, the solution is as follows:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted Download the corresponding file under this link, download the whl file of the corresponding version of twisted (such as my Twisted‑17.5.0‑cp36‑cp36m‑win_amd64 .whl), followed by cp is the python version, amd64 represents 64-bit, and the running command is as follows:

pip install C:\Users\gc\Desktop\Twisted-18.4.0-cp36-cp36m-win_amd64.whl

After the operation is complete, continue to the first step to install Scrapy!

As shown below:



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325561678&siteId=291194637