-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS X El Capitan Tensorflow 0.6 upgrade error #500
Comments
Seems to be caused by new feature "System Integrity Protection"(SIP) in El Capitan. What's the best way to work-around it? There is an option to disable the SIP, but seems risky. It's possible to try virtual env. But is there a way in Mac stock python? After all, 0.5 version was working fine there. |
As a workaround you can try using homebrew python. It works for me with 2.7.11. |
Thanks. homebrew python 2.7.11 works well with 0.6 tensorflow. |
After I update python 2.7.11 through homebrew, I still can't solve this problem. |
Finally I found out the root cause is that I install pip via easy_install before and then install homebrew python. The system version of pip would be called when you install tensorflow by pip. You can uninstall easy_install and re-install python through homebrew, and then it works. |
adding "--ignore-installed six" to the "sudo pip install" command solved the problem for me |
@martin-gorner Thanks!! I was able to install by adding "--ignore-installed six". |
Thanks, @martin-gorner! |
Hello, I am still getting the error(s) described above, which I presume means that tensorflow 0.6 is not installing, would appreciate any further help. This is my first attempt at tf, and I have not had a successful installation, e.g. tf 0.5 as jwnsu did. I am using: pip 7.1.0 (doesn’t seem to allow to upgrade further, e.g. to 7.1.2 as I’ve seen others using, or 8.0.2 as the system says is available); python 2.7.10 I did this: and got this: "You are using pip version 7.1.0, however version 8.0.2 is available. I did this: $ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl And got this (i.e. the same error messages): "The directory '/Users/_my name_/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. |
@mgottsch1 You will not be able to install directly using I was able to install Additional tip (just in case): you could use jupyter notebook (which is also impossible to install directly using |
Thank you Oleksandra28, virtualenv did the trick. Brilliant!
|
The command below works for me We should update the documentation here to avoid confusion. |
The command above works for me too. |
--ignore-installed six works for me as well. Thanks! |
nothing works for me ! |
Similar, also got stuck installing tensorflow on Mac OSX El Captain. Collecting tensorflow==0.7.1 from https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp27-none-any.whl
|
--ignore-installed six works for me too. Thanks! |
Thank you 1337newbee, that command works for me. |
@erwincoumans and anyone else getting the error about:
Simple answer:run Long answer:I found some good info here, specifically here. This error occurs when there are two versions of numpy. Removing one doesn't work either. A guy suggests running this in python:
To tell you which numpy path it's using and the
Now, when you |
|
sudo easy_install --upgrade numpy fixed the problem for me.Thx |
…pstream-deven-misc-190610 Workaround for rocm-xla failures introduced by the switch to rocm 2.5
Had a good-running 0.5 tensor flow, now upgrade to 0.6 with command line from Google instruction:
"sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl", run into following exception:
"Installing collected packages: setuptools, protobuf, wheel, 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-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 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-XBiBee-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/init.py', "[Errno 1] Operation not permitted: '/tmp/pip-XBiBee-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-XBiBee-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/init.pyc', "[Errno 1] Operation not permitted: '/tmp/pip-XBiBee-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-XBiBee-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', "[Errno 1] Operation not permitted: '/tmp/pip-XBiBee-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-XBiBee-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', "[Errno 1] Operation not permitted: '/tmp/pip-XBiBee-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-XBiBee-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', "[Errno 1] Operation not permitted: '/tmp/pip-XBiBee-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib'")]
It's stock Mac python 2.7.10 (without ipython).
The text was updated successfully, but these errors were encountered: