Im using Windows 10 on python 3.6.3, and i try to download the module PyAudio using pip by using the script.
python -m pip install pyaudio
It then gives me a syntax error.
>>> python -m pip install pyaudio
SyntaxError: invalid syntax
I definitely have pip because i have been able to import it to python shell without any errors. I have been inputting this into python's shell and python's command prompt.
The problem you have it that you are executing >>> python -m pip install pyaudio SyntaxError: invalid syntax
from inside the python shell. You need to execute python -m pip install pyaudio
from the command prompt instead without going into the python shell
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.