Dec-06-2021, 04:28 PM
Did you read my last post where i try to explain how this work?
So to to add some info will install pygame and test that it work,all from
so the root path that
Then will Pygame work in PyCharm.
So to to add some info will install pygame and test that it work,all from
cmd
.# Test python C:\>python -V Python 3.9.5 # Test pip C:\>pip -V pip 21.2.4 from c:\python39\lib\site-packages\pip (python 3.9) # Install C:\>pip install pygame --upgrade Collecting pygame Downloading pygame-2.1.0-cp39-cp39-win_amd64.whl (4.8 MB) |████████████████████████████████| 4.8 MB 1.3 MB/s Installing collected packages: pygame Successfully installed pygame-2.1.0 # Test that it work C:\>python Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AM D64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pygame pygame 2.1.0 (SDL 2.0.16, Python 3.9.5) Hello from the pygame community. https://www.pygame.org/contribute.html >>> >>> pygame.__version__ '2.1.0' >>> exit() C:\>So when all work from command line in Configure a Python interpreter choose same version as interpreter,
so the root path that
pip -V
show,eg for me c:\python39
for you it will shown and other path.Then will Pygame work in PyCharm.