Error handling occurs under win10 installation scrapy

One, the background:

      In the win10 dos window using the command pip install scrapy installation scrapy, appears "error:. Microsoft Visual C ++ 14.0 is required Get it with" Microsoft Visual C ++ Build Tools ": https://visualstudio.microsoft.com/downloads/" the error message, the installation is unsuccessful.

Second, the process:

1, according to the Microsoft Web site prompted the Visual Studio suite of C ++ build components are installed, can not solve the problem.

2, online help, the "https://blog.csdn.net/doyanger/article/details/54235203" page to see an error message appears mainly components lxml components failed to install successfully (and then view the installation of error, found a "building 'lxml.etree' extension" keyword in front error, indeed described problem occurring when mounting lxml component), can be "http://www.lfd.uci.edu/~gohlke/pythonlibs / # lxml "directly to the site to download the corresponding version of lxml components to install.

3, look for keywords in lxml "http://www.lfd.uci.edu/~gohlke/pythonlibs" page, you can see a series of lxml components, select " lxml-4.4.1-CP38-CP38-win_amd64 .whl "component download, and placed in the directory" c: \ Users \ Administrator \ " under. Into the dos window (run type cmd, dos automatically enters the supervisor mode), enter the command "PIP the install ./ lxml-4.4.1-CP38-CP38-win_amd64.whl ", to complete the installation lxml assembly.

4, after the components are installed lxml, pip insall scrapy re-execution command, found also need to install twisted assembly mounted above method Download "Twisted-19.7.0-cp38-cp38-win_amd64.whl", the implementation of "pip install ./Twisted -19.7.0-cp38-cp38-win_amd64.whl "installation.

5, after the above-mentioned components are installed, continue with the pip install scrapy, red error no longer occurs, the installation was successful!

III Summary

  Lxml and twisted the key components of the components are scrapy, directly under win10 installation requires C ++ build compiler support C ++ build tools should be installed not complete it, failed to install immediate success, to find opportunities for follow-up testing. Use the online system corresponding compiled finished components are installed and twisted lxml is a good way to not only solve the problem but also saves time. 

Guess you like

Origin www.cnblogs.com/sfccl/p/11699621.html