Unable to find vcvarsall.bat (Unsolved for 2022 version, Python)

415 Views Asked by At

I've been trying to instsall pgzero library for python, but however it keeps giving me an error: "unable to find vcvarsall.bat " I have been searching over StackOverflow, it shows up how to fix it for 2017 version by installing Microsoft building tools, i did download them, but it is still not installing. Is there any suggestion on how to solve the problem? I have a pip I simply have written

pip install pgzero

picture with an error

1

There are 1 best solutions below

0
Aleksandra Milicevic On BEST ANSWER

For me this command worked, first install pygame like this:

pip install pygame --pre

then install pgzero

pip install pgzero --pre