I installed pygame but can't use it in my code. In CMD it works. But in Pycharm not. Please help | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

I installed pygame but can't use it in my code. In CMD it works. But in Pycharm not. Please help

20th Jul 2019, 4:36 PM
Jonas
Jonas - avatar
2 Réponses
0
Do you have multiple py versions on your pc? If so make sure you path is set to the right place and you are working in the right version. To avoid this you should learn about virtual environments and learn to work inside one for each project.
20th Jul 2019, 6:06 PM
James
James - avatar
0
you need to link the library, if pycharm is an IDE, check the options.
20th Jul 2019, 4:48 PM
Bebida Roja
Bebida Roja - avatar