title: installing tensorflow on mac os with pip3
body: <p>So I'm having some trouble getting tensorflow working on my mac.
  I checked my current version of python and ran the install.
  From the result I can clearly see it's already there:</p>
  
  <pre><code>$ python --version
  Python 3.4.3 :: Anaconda 2.3.0 (x86_64)
  $ pip3 install tensorflow
  Requirement already satisfied: tensorflow in 
  
  /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
  Requirement already satisfied: six&gt;=1.10.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from tensorflow)
  Requirement already satisfied: protobuf&gt;=3.1.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from tensorflow)
  Requirement already satisfied: numpy&gt;=1.11.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from tensorflow)
  Requirement already satisfied: wheel&gt;=0.26 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from tensorflow)
  Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from protobuf&gt;=3.1.0-&gt;tensorflow)
  Requirement already satisfied: appdirs&gt;=1.4.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from setuptools-&gt;protobuf&gt;=3.1.0-&gt;tensorflow)
  Requirement already satisfied: packaging&gt;=16.8 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from setuptools-&gt;protobuf&gt;=3.1.0-&gt;tensorflow)
  Requirement already satisfied: pyparsing in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from packaging&gt;=16.8-&gt;setuptools-&gt;protobuf&gt;=3.1.0-&gt;tensorflow)
  </code></pre>
  
  <p>But when I run python and try importing the module it can't be found. Why is this the case?</p>
  
  <pre><code>$ python
  Python 3.4.3 |Anaconda 2.3.0 (x86_64)| (default, Mar  6 2015, 12:07:41) 
  [GCC 4.2.1 (Apple Inc. build 5577)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import tensorflow
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named 'tensorflow'
  </code></pre>
  
  <p>Edit: I tried doing what wpercy suggested and got an error</p>
  
  <pre><code>PermissionError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wheel/__init__.py'
  </code></pre>
  
  <p>So then I tried</p>
  
  <pre><code>sudo pip3 install --ignore-installed --upgrade $TF_BINARY_URL
  </code></pre>
  
  <p>This one didn't give me an error, but I did receive this warning:</p>
  
  <pre><code>The directory '/Users/daltyboy11/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.
  The directory '/Users/daltyboy11/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  </code></pre>
  
  <p>It installed successfully, but again, when I try importing it in python the module is not recognized. Does this warning have something to do with it?</p>
  
  <p>Alright so I finally got it working, and it required me to do the installation in a conda environment (from the instructions in the tensorflow docs):</p>
  
  <pre><code>$ conda create -n tensorflow python=3.4
  $ source activate tensorflow
  (tensorflow)$  # Your prompt should change
  
  # Linux/Mac OS X, Python 2.7/3.4/3.5, CPU only:
  (tensorflow)$ conda install -c conda-forge tensorflow
  </code></pre>
  
  <p>but now if I want to use tensorflow I am required to activate this conda environment... This is OK... but it still did not resolve my original problem. Does anyone know how I can go about using tensorflow outside of a conda environment?</p>
  
  <p>Thanks</p>