Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
219 views
in Technique[技术] by (71.8m points)

Python Can't install packages

soi'm trying to install a package on python, so python is throwing error on installing packages i'm getting error everytime i tried to install pip install google-search-api python3 for google search api here is the error how can i succesfully install it? i already updated that but and have the latest version of 14.27 the problem is throwing same erro

  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
 

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Go to the link and download this , if you have it then just open it

enter image description here

Once you open it, it might take some other steps but it's obvious and just go with it.

You'll see you might have something like this, just download it or resume.

MSBT

If updating above doesn't work then you need to configure or make some updates here. You can make some updates here too my clicking "Modify".

Check that and download what you need there or you might found there that you just need to update Microsoft Visual C++ as stated on the error, but I also suggest to update everything there cause you might still need it on your future programs, I think those with the C++ as I've done that before and had a similar problem just like that when installing a python package for creating WorldCloud visualization.

C++ Build tools


UPDATE: December 28, 2020

You can also follow this steps here

Select: Workloads → Desktop development with C++, then for Individual Components, select only:

  • Windows 10 SDK
  • C++ x64/x86 build tools

Source here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...