How do I upgrade to Tensorflow 1.0 using anaconda?

橙三吉。 提交于 2019-12-19 04:59:14

问题


I have an anaconda installation of tensorflow (version 0.9.0) and I can't upgrade it to 1.0.

When I run

    conda install tensorflow=1.0.0

I get

         PackageNotFoundError: Package missing in current osx-64 channels: 
        - tensorflow 1.0.0*

When I try

    pip install --ignore-installed --upgrade https://storage.googleapiscom/tensorflow/mac/cpu/tensorflow-1.1.0-py3-none-any.whl

It times out. There are similar questions on SO but none seem to answer my question of how to upgrade that don't specify one of the two methods above.


回答1:


Tensorflow 1.0.0 is not available in the default Anaconda channel for OS X. Check with "conda list" that tensorflow is not already installed on your system. If it is, remove using

conda uninstall tensorflow

You can install 1.0.0 by installing from the conda-forge channel

conda install -c conda-forge tensorflow=1.0.0



回答2:


For anaconda installation, first pick a channel which has the latest version of TensorFlow binary. The latest versions are usually available at the channel conda-forge. So, simply do:

# `-f` will force the current installation to upgrade
# `-c conda-forge` means we select `conda-forge` channel
$ 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



来源:https://stackoverflow.com/questions/43897765/how-do-i-upgrade-to-tensorflow-1-0-using-anaconda

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!