[Solved] When installing a third-party library, the error "Setup script exited with error: Microsoft Visual C++ 14.0 is required" is reported

Background introduction:

Recently, I want to do a small project to crawl and analyze important documents in Pubmed, so I need to install the metapub package. Who knows that I encountered a bug before I started writing the code. I used the official command "pip install metapub" to install it wrong.

Error display:

 solution:

1. According to the error message, click " https://visualstudio.microsoft.com/downloads/ " and select "Visual Studio 2019" to install

 2. After installing the necessary components, select C++ desktop development, select only MSVC v142 and Windows 10 SDK (the first two items) on the right, and install it

3. Next, re-enter "pip install metapub" in the command window, and the following interface appears

The screen is full of red, too dazzling!

4. Then, enter the official website of metapub " https://pypi.org/project/metapub/ " and download the compressed package manually

5. After decompression, switch to the decompression path, hold down Shift, and click the right mouse button to call out the PowerShell window

 6. Enter "python.exe setup.py install" on the command line

However, there are still errors

7. Enter the command "pip uninstall six" to uninstall six 1.12.0

Although I don't know what problems will occur after uninstalling the six package, but it does not affect the use of metapub at present! 

Guess you like

Origin blog.csdn.net/weixin_41698730/article/details/119981115