MacOSX SpeechRecognition installation problems

2016-12-07 Thread 3dB
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?

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


Re: MacOSX SpeechRecognition installation problems

2016-12-08 Thread 3dB
Anton, Thanks for the detailed response. I will look into virtualenv and 
others. Please excuse beginner's question, but is Xcode of any use in this type 
of situation?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: MacOSX SpeechRecognition installation problems

2016-12-08 Thread 3dB
Thanks Michael,

I think I was confusing Virtual Environment (VE) with IDE.

Probably best if I get to grips with virtualenv to start with since I can't 
complete installations at present and VE appears to offer best solution.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: MacOSX SpeechRecognition installation problems

2016-12-08 Thread 3dB
Michael,

I tried installing virtual env but got similar permissions error:

IOError: [Errno 13] Permission denied: 
'/Library/Python/2.7/site-packages/virtualenv.py'
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: MacOSX SpeechRecognition installation problems

2016-12-08 Thread 3dB
> > pip install --user virtualenv
> > 
> > It will wind up in $HOME/.local/lib/python2.7/site-packages (or similar) I
> > believe.

Michael, Skip, 

I've noticed that Python is in the highest level of the drive, 
HDD/Library/Python as opposed to usr/Library. Does that present a problem? 

Also noticed that Python folder contains both versions 2.6 and 2.7.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: MacOSX SpeechRecognition installation problems

2016-12-08 Thread 3dB
> pip install --user virtualenv
> 
> It will wind up in $HOME/.local/lib/python2.7/site-packages (or similar) I
> believe.

Skip, thanks, that worked for virtualenv.

I'll now try sudo for Speechrecognition.
-- 
https://mail.python.org/mailman/listinfo/python-list