ImportError: No module named 'pygame'
pip install pygame File "<stdin>", line 1 pip install pygame ^ SyntaxError: invalid syntax
ImportError: No module named 'pygame'
pip install pygame File "<stdin>", line 1 pip install pygame ^ SyntaxError: invalid syntax
What do you mean by "upgrading to Python 3.5"? Could you show the full error message? Where are you running the pip install
command and where do you see ImportError
message? Also -- pygame
won't work on PythonAnywhere, see: https://help.pythonanywhere.com/pages/TkinterPygameEtc/.
I'm running pip command on bash. Does that mean pygame can't be installed?
It's hard to tell what's the issue here, because I don't see the full error message. My suspicion though is that you're running it inside of a Python shell, not in Bash.