-2

enter image description hereI am working on azure speech services and currently, I'm facing a problem with this command on Python: pip install azure-cognitiveservices-speech

I get the following error: "Invalid Syntax".

I followed this tutorial: https://docs.microsoft.com/fr-fr/azure/cognitive-services/speech-service/quickstart-python

How to make this work?

This is for Windows 7 64 bits, running Python 3.6 64 bits. I've tried with Python 3.7 64 bits and got the same error.

Edit: The same error while using cmd prompt.cmd prompt - install error

desertnaut
  • 46,107
  • 19
  • 109
  • 140
Neat Head
  • 37
  • 4
  • 2
    sounds like you are trying to run this inside of python. try pressing the windows key on your keyboard, typing 'cmd' hit enter, then paste the pip line and press enter. – Chris Apr 15 '19 at 15:37
  • this thread might help: https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows – RK1 Apr 15 '19 at 16:11
  • I've tried it on cmd but I got the same error. :/ – Neat Head Apr 16 '19 at 10:02
  • Question is about `pip`, and has nothing to do with `machine-learning` or `speech-recognition` - kindly do not spam irrelevant tags (removed). – desertnaut Apr 16 '19 at 17:05

1 Answers1

0

pip is the package installer for Python, which can be used in command line, not in Python interpreter. On Windows, you can find it in your Python installed path, as the figure below for my Python 3.7.

enter image description here

So if you have add the pip installed path into environment variable PATH, you can directly use it in CMD or PowerShell, or you can move to its installed path to use it.

Fig 1. My pip path has been added into PATH

enter image description here

Fig 2. Or use it under the path in CMD

enter image description here

Fig 3. Install azure-cognitiveservices-speech successfully via pip in CMD

enter image description here

Fig 4. Then use it in Python interpreter without any issue, or in other IDE like Visual Studio Code.

enter image description here

Peter Pan
  • 20,663
  • 4
  • 18
  • 35