When attempting to install on a bare Mac OS X 10.11 (El Capitan) laptop I get the following error. Not seeing documentation on how to get around.
User-MacBook-Air:~ user$ sudo pip install boto3
[..output..]
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/basecommand.py", line 211, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/commands/install.py", line 311, in run
root=options.root_path,
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_set.py", line 640, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py", line 716, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_uninstall.py", line 125, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/utils/__init__.py", line 315, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-Xfm7d1-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
I don't have an OS X El Capitan to test, but it seems googling "pip OSError: [Errno 1] Operation not permitted" will give us this link in the first result. Hope that helps.
This might work if you need to use the system python over brew's.
sudo pip install --ignore-installed six boto3
sudo pip install --ignore-installed six boto3
Works on OS X El Capitan thanks!
Thank you!
sudo pip install --ignore-installed six boto3
That got the install to work. When I run a script that uses boto3, I get:
AttributeError: 'module' object has no attribute 'Number'
at /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/decimal.py
The line of code says:
_numbers.Number.register(Decimal)
Same for me @marcpage
Any suggestion?
thanks @chadneal ! All good.
awesome! thanks @chadneal
@chadneal
Thank yo so much man
sudo pip install --ignore-installed six boto3
after installing boto3 i am getting below error.
from test.datetimetester import MINUTE
ImportError: No module named datetimetester
As an experiment, instead of using pip I used easy_install, and that worked perfectly.
sudo easy_install boto3
Most helpful comment
This might work if you need to use the system python over brew's.
sudo pip install --ignore-installed six boto3