Created
December 17, 2015 18:14
-
-
Save xeb/f2c3d86009f2be29737d to your computer and use it in GitHub Desktop.
TensorFlow Install on Mac OS X with sudo PIP and Six pre-installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo -H pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl --ignore-installed six | |
# Modified install command from: https://www.tensorflow.org/versions/master/get_started/os_setup.html | |
# See: https://github.com/pypa/pip/issues/3165 | |
# Because Apple has preinstalled the dependency Six that cannot be removed | |
# Some of the errors I experienced were the following: | |
# [Errno 1] Operation not permitted: '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib | |
# [Errno 1] Operation not permitted: '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py | |
# | |
# Full Stack from recommended install command | |
# Installing collected packages: setuptools, protobuf, wheel, numpy, tensorflow | |
# Found existing installation: setuptools 1.1.6 | |
# Uninstalling setuptools-1.1.6: | |
# Exception: | |
#Traceback (most recent call last): | |
# File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 211, in main | |
# status = self.run(options, args) | |
# File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 311, in run | |
# root=options.root_path, | |
# File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 640, in install | |
# requirement.uninstall(auto_confirm=True) | |
# File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 716, in uninstall | |
# paths_to_remove.remove(auto_confirm) | |
# File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 125, in remove | |
# renames(path, new_path) | |
# File "/Library/Python/2.7/site-packages/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 299, in move | |
# copytree(src, real_dst, symlinks=True) | |
# File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 208, in copytree | |
# raise Error, errors | |
# Error: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py', '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py', "[Errno 1] Operation not permitted: '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc', '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc', "[Errno 1] Operation not permitted: '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', "[Errno 1] Operation not permitted: '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', "[Errno 1] Operation not permitted: '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', "[Errno 1] Operation not permitted: '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib'")] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment