I am attempting to download the discord.py
module using pip
, but I keep getting a syntax error like this:
>>> py -3 -m pip install -U discord.py
File "<stdin>", line 1
py -3 -m pip install -U discord.py
^
SyntaxError: invalid syntax
I made sure pip
was installed and tried downloading the module from the .whl
file directly only to receive a syntax error in the same place.
You seem to be running the command in the Python REPL interpreter. You should run that command in the terminal/CLI of the operating system.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.