'Library not loaded: @rpath/libcudart.7.5.dylib' TensorFlow Error on Mac

后端 未结 4 1478
孤城傲影
孤城傲影 2020-11-29 08:19

I\'m using OS X El Capitan (10.11.4).

I just downloaded TensorFlow using the pip install instructions here.

Everything went pretty smoothly, though I did get

4条回答
  •  执念已碎
    2020-11-29 09:14

    This error message is displayed if you install the GPU-enabled Mac OS version of TensorFlow (available from release 0.10 onwards) on a machine that does not have CUDA installed.

    To fix the error, install the CPU version for Python 2.7 or 3.x, as follows:

    # Mac OS X, CPU only, Python 2.7:
    $ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py2-none-any.whl
    $ sudo pip install --upgrade $TF_BINARY_URL
    
    # Mac OS X, CPU only, Python 3.4 or 3.5:
    $ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
    $ sudo pip3 install --upgrade $TF_BINARY_URL
    

    See tensorflow versions: https://www.tensorflow.org/versions/

提交回复
热议问题