Setup Error on MAC – Watson Python SDK


Today i got the following error when i install watson python sdk on my MAC:

I use the command :  sudo pip install watson-developer-cloud

The exception was:
Traceback (most recent call last):
File “/Library/Python/2.7/site-packages/pip/”, line 215, in main
status =, args)
File “/Library/Python/2.7/site-packages/pip/commands/”, line 342, in run
File “/Library/Python/2.7/site-packages/pip/req/”, line 778, in install
File “/Library/Python/2.7/site-packages/pip/req/”, line 754, in uninstall
File “/Library/Python/2.7/site-packages/pip/req/”, line 115, in remove
renames(path, new_path)
File “/Library/Python/2.7/site-packages/pip/utils/”, line 267, in renames
shutil.move(old, new)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/”, line 299, in move
copytree(src, real_dst, symlinks=True)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/”, line 208, in copytree

Solving the problem:

sudo -H pip install –ignore-installed six watson-developer-cloud

After a few seconds:

Successfully built watson-developer-cloud Twisted zope.interface pycparser
Installing collected packages: six, certifi, chardet, idna, urllib3, requests, python-dateutil, txaio, autobahn, setuptools, zope.interface, constantly, incremental, attrs, Automat, hyperlink, Twisted, pycparser, cffi, enum34, asn1crypto, ipaddress, cryptography, pyOpenSSL, pyasn1, pyasn1-modules, service-identity, watson-developer-cloud