Search code examples
pythonnao-robotpepper

Am not able to install SpeechRecognition module on Pepper


Hello I am trying to install speechrecogntion python module on Pepper by using the below command. pip install SpeechRecognition

I am getting the below error.

Any idea how I can fix this issue?

Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system: '/usr/lib/python2.7/site-packages/SpeechRecognition-3.8.1.dist-info'

Thank you!!


Solution

  • As mentioned here: You don't have root access on Pepper, which limits where you can install.

    your command tries to install the package to /usr/lib/python2.7/site-packages/ where you would need root acceess to write.

    If you updated pip try:

    /home/nao/.local/bin/pip install --user SpeechRecognition
    

    if not try:

    pip install --user SpeechRecognition
    

    this will install the package to another directory where you have write access.