Update TensorFlow

前端 未结 8 1627
逝去的感伤
逝去的感伤 2020-12-28 13:12

I\'m working with Ubuntu 14.04 , I had a TensorFlow V0.10 but I want to update this version. if i do:

$ pip install --upgrade $TF_         


        
相关标签:
8条回答
  • 2020-12-28 13:41

    Tensorflow upgrade -Python3

    >> pip3 install --upgrade tensorflow --user
    

    if you got this

    "ERROR: tensorboard 2.0.2 has requirement grpcio>=1.24.3, but you'll have grpcio 1.22.0 which is incompatible."

    Upgrade grpcio

    >> pip3 install --upgrade grpcio --user
    
    0 讨论(0)
  • 2020-12-28 13:42

    Upgrading to Tensorflow 2.0 using pip. Requires Python > 3.4 and pip >= 19.0

    CST:~ USERX$ pip3 show tensorflow
    Name: tensorflow
    Version: 1.13.1
    
    CST:~ USERX$ python3 --version
    Python 3.7.3
    
    CST:~ USERX$ pip3 install --upgrade tensorflow
    
    CST:~ USERX$ pip3 show tensorflow
    Name: tensorflow
    Version: 2.0.0
    
    0 讨论(0)
  • 2020-12-28 13:49

    For anaconda installation, first pick a channel which has the latest version of tensorflow binary. Usually, the latest versions are available at the channel conda-forge. Then simply do:

    conda update -f -c conda-forge tensorflow
    

    This will upgrade your existing tensorflow installation to the very latest version available. As of this writing, the latest version is 1.4.0-py36_0

    0 讨论(0)
  • 2020-12-28 13:51

    Before trying to update tensorflow try updating pip

    pip install --upgrade pip
    

    If you are upgrading from a previous installation of TensorFlow < 0.7.1, you should uninstall the previous TensorFlow and protobuf using,

    pip uninstall tensorflow
    

    to make sure you get a clean installation of the updated protobuf dependency.

    Uninstall the TensorFlow on your system, and check out Download and Setup to reinstall again.

    If you are using pip install, go check the available version over https://storage.googleapis.com/tensorflow, search keywords with linux/cpu/tensorflow to see the availabilities.

    Then, set the path for download and execute in sudo.

    $ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.0-py2-none-any.whl
    
    $ sudo pip install --upgrade $TF_BINARY_URL
    

    For more detail, follow this link in here

    0 讨论(0)
  • 2020-12-28 13:57

    This is official recommendation for upgrading Tensorflow.

    To get TensorFlow 1.5, you can use the standard pip installation (or pip3 if you use python3)

    $  pip install --ignore-installed --upgrade tensorflow
    
    0 讨论(0)
  • 2020-12-28 13:59

    To upgrade any python package, use pip install <pkg_name> --upgrade.

    So in your case it would be pip install tensorflow --upgrade. Just updated to 1.1.0

    0 讨论(0)
提交回复
热议问题