0

I am trying to follow this link from Google to install Cloud Natural Language API Client Libraries.

However, when I run:

pip install --upgrade google-cloud-language

I get this error:

OSError: [Errno 1] Operation not permitted: '/var/folders/ng/l9w5y3615ssgmcyt06376k240000ft/T/pip-yy0iba-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

I also tried:

sudo pip install --upgrade google-cloud-language

but got the same error.

I read somewhere that as this is trying to change something on the /System/Library OSX El Capitan prevents this.

Is there any suggestion on how to proceed?

Thanks for your help.

TJ1
  • 7,578
  • 19
  • 76
  • 119

1 Answers1

1

Very strange sudo also gave that error but you're way better off running all your Python code inside a virtualenv. I understand it's one more tool to learn but it will simplify everything you do from now on greatly, and running lots of commands with sudo is a bad idea anyway (what if installation code does evil things?)

This is the best guide for setting up Python on OS X., along with the followup section on virtualenv.

Bill Prin
  • 2,498
  • 1
  • 20
  • 27
  • Thanks for the answer, I will wait to see if someone is going to answer why I am seeing that issue. If nobody answers I will accept your answer. – TJ1 Mar 08 '17 at 06:08
  • @TJ1 see : http://stackoverflow.com/questions/33004708/osx-el-capitan-sudo-pip-install-oserror-errno-1-operation-not-permitted – Bill Prin Mar 08 '17 at 21:00