I am trying to run a python file on an EC2 machine with Amazon Linux installed. I used putty to connect and when I try to run the file I get this output.
[ec2-user@myIP ~]$ python oasis_live.py
File "oasis_live.py", line 36
async def on_ready(self):
^
SyntaxError: invalid syntax
[ec2-user@myIP ~]$ python3 oasis_live.py
Traceback (most recent call last):
File "oasis_live.py", line 3, in <module>
import discord
ModuleNotFoundError: No module named 'discord'
[ec2-user@myIP ~]$
This is very confusing to me since the code works perfectly fine on my PC.