Gho*_*der 1 python upgrade anaconda conda tensorflow
我有一个anaconda安装tensorflow(版本0.9.0),我无法将其升级到1.0.
我跑的时候
conda install tensorflow=1.0.0
Run Code Online (Sandbox Code Playgroud)
我明白了
PackageNotFoundError: Package missing in current osx-64 channels:
- tensorflow 1.0.0*
Run Code Online (Sandbox Code Playgroud)
当我尝试
pip install --ignore-installed --upgrade https://storage.googleapiscom/tensorflow/mac/cpu/tensorflow-1.1.0-py3-none-any.whl
Run Code Online (Sandbox Code Playgroud)
它超时了.在SO上也有类似的问题,但似乎没有人回答我如何升级的问题,没有指定上述两种方法中的一种.
all*_*y-e 11
Tensorflow 1.0.0在OS X的默认Anaconda通道中不可用.请在"conda list"中查看系统上尚未安装tensorflow.如果是,请删除使用
conda uninstall tensorflow
Run Code Online (Sandbox Code Playgroud)
您可以通过从conda-forge通道安装来安装1.0.0
conda install -c conda-forge tensorflow=1.0.0
Run Code Online (Sandbox Code Playgroud)
对于anaconda安装,首先选择具有最新版TensorFlow二进制文件的通道.最新版本通常在频道上提供conda-forge
.所以,只需:
# `-f` will force the current installation to upgrade
# `-c conda-forge` means we select `conda-forge` channel
$ conda update -f -c conda-forge tensorflow
Run Code Online (Sandbox Code Playgroud)
这会将您现有的TensorFlow安装升级到最新版本.在撰写本文时,最新版本是1.4.0-py36_0
归档时间: |
|
查看次数: |
16758 次 |
最近记录: |