Why can't use the newly installed TensorFlow library using python 3?
<p>I recently upgraded to python 3.5 and was trying to use TensorFlow. I followed the instructions <a href="https://www.tensorflow.org/versions/r0.10/get_started/os_setup.html" rel="nofollow">https://www.tensorflow.org/versions/r0.10/get_started/os_setup.html</a> and installed tensorflow with GPU enabled:</p>

<pre><code># Mac OS X, GPU enabled, Python 3.4 or 3.5:
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.10.0rc0-py3-none-any.whl
</code></pre>

<p>however, when I tried using tensorflow it threw a really strange error:</p>

<pre><code>&gt;&gt;&gt; import tensorflow
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/Users/user/path/venv2/lib/python3.5/site-packages/tensorflow/__init__.py", line 23, in &lt;module&gt;
    from tensorflow.python import *
  File "/Users/user/path/venv/lib/python3.5/site-packages/tensorflow/python/__init__.py", line 48, in &lt;module&gt;
    from tensorflow.python import pywrap_tensorflow
  File "/Users/user/path/venv/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in &lt;module&gt;
    _pywrap_tensorflow = swig_import_helper()
  File "/Users/user/path/venv/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
  File "/Users/user/path/venv/lib/python3.5/imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/Users/user/path/venv/lib/python3.5/imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: dlopen(/Users/user/path/venv/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow.so, 10): Library not loaded: @rpath/libcudart.7.5.dylib
  Referenced from: /Users/user/path/venv/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow.so
  Reason: image not found
</code></pre>

<p>why is it throwing that error? I know that I do not have a GPU but I was under the impression from other conversation on the TensorFlow page that I don't require one to use the version that can potentially use a GPU.</p>

<p>you need to export the path to the folder of the cuda dylibs (like libcudart) with <code>export DYLD_LIBRARY_PATH</code> in your <code>~/.bash_profile</code></p>

python tensorflow