I decided to take up python again. Wasn’t a heavy user as I was a bit of a Perl snob. The current job really doesn’t offer serious time for good scripting so I was a little lax on that front.
I have a refresher book “Visual Quickstart Guide for Python” and for simple minded fun “Mission Python: Code a space adventure Game”
The mission book wants pygame. I quickly found I needed to install pip as well. Commands not recognized.
I should mention; I am using Windows 10 on a laptop and have installed Visual Studio community edition with the Python add on. I still upgraded Python to the latest release.
If you are using Windows; you can make your python experience a little easier with two PATH additions for python and the scripts folder in python. In my case
- “C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\”
- “C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\ Scripts\”
After that; you can get a nice little script which will run the pip install. Start an admin level CMD window and enter: python <location of script>\get-pip.py
Once it’s installed; you can install pygame simply by entering: pip install pygame
It’s a quick install. Just verify there are no error messages.