Reputation: 1
I am learning Python from the Internet. I have downloaded Python 3.6 and Spyder from Anaconda. Using Windows 10 device. I need to install speech recognition library, using code:
sudo pip SpeechRecognition
and for that I am not able to use Spyder.It shows a syntax error. I need to open the python terminal.
Upvotes: 0
Views: 1057
Reputation: 3104
As others have said, you should install in the cmd prompt.
There is an option to install in your IDE (Spyder)
You can run the following:
import pip
pip.main(["install", "SpeechRecognition"])
Upvotes: 0
Reputation: 958
Press WIN
+ R
, then type cmd
and press ENTER
.
Type in the following command and press ENTER
and the installation will began.
pip install SpeechRecognition
If you have a virtual environment set up, however, execute source activate {environemt_name}
before running the above command.
Type python
and press ENTER
to open Python Terminal.
Upvotes: 1
Reputation: 88
Go in the Start Menu, and look for the "Anaconda3" item, and use the Anaconda Prompt item there to launch a shell session with the environment set up. Then you can type
python
at the prompt, and it will start the default Python you've installed for Anaconda
Upvotes: 1