Reputation: 11016
I am trying to install tensor flow on my mac with
sudo pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
And I get the error:
Traceback (most recent call last):
File "<string>", line 16, in <module>
IOError: [Errno 2] No such file or directory: '/var/folders/9y/r7zhtk2s1s90hwcty1d6964w0000gn/T/pip-pnXFjW-build/setup.py'
I am on OSX 10.11.1 and all the development tools, pip and python2.7 are installed.
Upvotes: 4
Views: 1014
Reputation: 58
This may not be exactly the solution you're looking for, but I personally spent the last two hours diagnosing a similar issue where TensorFlow wouldn't work after correctly installing and having its packages satisfied.
It was throwing one of the strange _IO module import errors that seemed to be saying python was working correctly, and I ended up tracing it back all the way to the System Integrity Protection issue introduced in El Cap.
See here for easy fix that will let pip work correctly again.
For those that are curious, Apple introduced SIP to make sure no user accidentally hurts system files, but in the process it makes it trickier for users to run commands as root
Also, remember to run
sudo easy_install --upgrade six
and
sudo pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
After disabling SIP to make sure you patch up any requirements. You may need to uninstall some pip packages if this fails for some reason.
As a final note, you should be off the ground if, in the python shell, you can
import tensorflow as tf
and it doesn't throw any errors.
Upvotes: 1