(Dec-03-2021, 10:39 PM)barryjo Wrote: Amazing I had to use the --user option to ge3t the intall to work.On windows if using
I still do not know where PyGame was installed.
I would like to know what my default program directory is and how to change it.
Should I just take the defaults.
--user
it will be in eg for 3.9.C:\users\<username>\appdata\roaming\python\python39\Can look at this Python 3.9/3.8 and pip installation under Windows
So there you see i like simpler path like eg
C:\python39
Quote:Put another way, where is the python program located., Where did he module get loaded, should I have a sepatate direcctory just for my python files?So you see path over,OS find Python trough Environment Variables Path,when it correct
python
and pip
command should work from anywhere in cmd.Quote: i.e am I going to have to do something like include c:/pythosfiles/includes/ pygame or something like this?You don't need to include pygame once it's install
pip
it will always works as long Windows find python as mention over.A simple test from
cmd
Microsoft Windows [Version 10.0.19043.1288] (c) Microsoft Corporation. Med enerett. C:\Windows\System32>cd .. C:\Windows>cd.. # Python version C:\>python -V Python 3.9.5 # Pip version C:\>pip -V pip 21.1.3 from c:\python39\lib\site-packages\pip (python 3.9) # Python location C:\>python -c "import sys;print(sys.executable)" C:\Python39\python.exeSo you can just have python files(
.py
) in c:/pythosfiles/
.Then can just
python my_game.py
to eg run a Pygame.Using Editors(eg VS Code, PyCharm) then may find Python automatically or you need to point to path where Python is installed.