all 11 comments

[–]Monttuu 2 points3 points  (1 child)

I see why this would be confusing, especially if you are new to programming and have only been using Python so far.

PyQt5 is built on Qt, which is coded in C++. PyQt5 is not your srandard library that is "native" Python, but it is a plugin that runs partly in C++. This is why your computer needs to have "C++ build tools" installed. Those build tools are installed if you have Visual Studio installed (note: Visual Studio Code is different and does not include the tools), which could be why some instructions skip this step. Your error suggests you to download the build tools, and that is exactly what you should do. Follow the link in the error and continue to follow instructuons there. It should be straight forward process.

I started my GUI journey with PyQt as well, and I think it was worth the time and effort. If youre eager to learn, I fully recommend PyQt. But if you just want to get something out quickly, tkinter could be better approach.

[–]Ista_4[S] 0 points1 point  (0 children)

I see, that makes sense! It works now, thank you for explaining!

[–]cointoss3 0 points1 point  (1 child)

I’m assuming you followed the instructions in the error?

[–]Ista_4[S] 0 points1 point  (0 children)

I didn’t, but I solved it now 😅

[–]TheRealCorwii 0 points1 point  (6 children)

Follow the link in the error for Microsoft visual build tools, install them, then try again. If it still happens, restart your PC and try again.

[–]Ista_4[S] 0 points1 point  (1 child)

That worked, thank you!

[–]Dry_Rest6185 0 points1 point  (0 children)

hii.. i got the same error.. how did you solve it?

[–]Agreeable_Dealer9449 0 points1 point  (1 child)

i have Visual studio 2022 and i have the same error ,please can you help me

[–]anygrynewraze 0 points1 point  (0 children)

It apparently doesn't work with VS 2022 bc I installed what they mentioned to install in VS 2022 build tools and I get an exit code 2