Install with pip in python, Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"

       The last time you installed pip install lxml, there was an error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools", which translates to: Microsoft Visual C++ 14 is required, and you can get it with "Microsoft Visual C++ Build Tools" it. The implication is that we lack the necessary environment, of course, you can follow the prompt Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools generally follow the prompt to install a C+ A library of +14.0, but after entering the website, the library is as big as 4G, so downloading and installing is definitely not realistic.

1. At https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml , this package has been integrated for us, you can skip this library and install the lxml package you want.

Because the Python version is: 3.7.2, 32 bits.

So choose:

  • lxml‑4.3.3‑cp37‑cp37m‑win32.whl

2. When we download lxml-4.3.3-cp37-cp37m-win32.whl,

Execute: pip install  lxml-4.3.3-cp37-cp37m-win32.whl

3. Finally, using pip list, you can see that you have installed lxml.

In addition: This article is for pip install lxml, and there are problems. Of course, if you are pip install Scrapy or pip install hmmlearn, go to https://www.lfd.uci.edu/~gohlke/pythonlibs/ to find Scrapy or hmmlearn , And matching the python version and bit number (32-bit/64-bit) that I correspond to, I also encountered some pits. I read some blogs summarized by other people. I hope that it can be a little help for those who have problems. Everyone is welcome to communicate at any time.....

 

 

Guess you like

Origin blog.csdn.net/qq_25162431/article/details/89506449