0

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!!

2 Answers2

2

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.

TVK
  • 1,042
  • 7
  • 21
0

Yes. You are right , just to add you don’t need to use path as only pip install - - user packagename will work. Thank you very much

  • If you only use "pip install ..." you will use the default pip of version 1.4.1. But it is recommended to update pip as decribed in the link above. If you use "/home/nao/.local/bin/pip install ..." you will instead use the updated version of pip. – TVK Dec 19 '18 at 13:32