marblexu/PythonPlantsVsZombies

.py wont open

TriHydera opened this issue · 5 comments

.py wont open

please provide details, I don't know what the problem is.

erxer commented

Use powershell or cmd to open the file, then say what error it gives. I'm guessing you don't have pygame installed.

which Operating System are you using?
For Linux or Mac Os:

  1. open terminal
  2. install
    • Python 3.7
    • Python-Pygame 1.9
  3. Use terminal, Navigate to game directory where main.py file is present.
  4. USE **python main.py**

For Windows:

  1. Install (manually)
    - Python 3.7
    - Python-Pygame 1.9
  2. Open cmd or powershell and Navigate to game directory where main.py file is present.
  3. USE **python3 main.py**

This should run the code. Let me know, if not.

for Windows: you can download a 1.9.6 pygame whl file for python 3.7 from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame