I've been using the anaconda installation on their site . It seems to work and I'm able to create the tensor flow environment. After this, I seem to encounter some issues. I move from my terminal to my Ipynb and try import tensorflow as tf
and I get the following error:
ImportError: dlopen(/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so, 10): Library not loaded: @rpath/libcudart.8.0.dylib
Referenced from: /Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so
Reason: image not found
I did some googling and found this which says I may be running the script in the same directory as tensorflow. This seems simple but I don't know how to go about doing this.
Any help would be much appreciated.
This error message is displayed if you install the GPU-enabled Mac OS version of TensorFlow on a machine that does not have CUDA installed.
To fix this, you can try doing either of the following.
# Mac OS X, CPU only, Python 2.7:
conda remove tensorflow
conda install -c conda-forge tensorflow=0.10.0
You can see the package here - https://anaconda.org/conda-forge/tensorflow
Make a new environment or remove the package from conda and try the following:
# Mac OS X, CPU only, Python 2.7:
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.10.0rc0-py2-none-any.whl
$ sudo pip install --upgrade $TF_BINARY_URL
Hope this helps!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.