marblexu / PythonPlantsVsZombies

a simple PlantsVsZombies game
3.43k stars 941 forks source link

.py wont open #6

Open TriHydera opened 4 years ago

marblexu commented 4 years ago

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

TriHydera commented 4 years ago

I Double clicked the file and it brought up the cmd and then nothing happened

On Wed, 11 Dec 2019, 12:19 marblexu, notifications@github.com wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/marblexu/PythonPlantsVsZombies/issues/6?email_source=notifications&email_token=AJQC4ZBJTZ2XXEJ5XYZNWLTQYDLFXA5CNFSM4JZNYRSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGS5DUI#issuecomment-564515281, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJQC4ZFUYHSCBJMZMNSYPFTQYDLFXANCNFSM4JZNYRSA .

erxer commented 4 years ago

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

starinfinity commented 4 years ago

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.

marblexu commented 4 years ago

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