I would suggest using virtual environment (virtualenv, for example) for 
installing such packages. 

Dealing with directory permissions on MacOS is complicated, and using "sudo" is 
not the right way. Moreover, during the next OS upgrade the permissions will be 
updated as well, and chances are that your global package configuration breaks 
anyways. 

Regards,
      Anton

>> On 8 Dec 2016, at 09:18, Michael Torrie <torr...@gmail.com> wrote:
>> 
>> On 12/07/2016 11:09 PM, 3dB wrote:
>> trying to install SpeechRecognition for Python results in error:
>> 
>> running install_lib
>>   creating /Library/Python/2.7/site-packages/speech_recognition
>>   error: could not create 
>> '/Library/Python/2.7/site-packages/speech_recognition': Permission denied
>> 
>> 
>> Any advice on how to fix?
> 
> Are you using sudo?
> 
>> 
>> Follow information may be helpful:
>> 
>> MacOSX 10.12.1
>> Python 2.7.10 (default, Jul 30 2016, 18:31:42) 
>> [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
>> 
>> /usr/local/bin/brew
>> /usr/bin/python
>> 
>> pip 9.0.1 from /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg (python 
>> 2.7)
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to