python-3.x - 无法为 Conda 更新 Tensorflow
问题描述
我想将 Tensorflow 从 1.14 更新到 2.1.0,但我做不到。
在我用命令安装它之后
conda install -c anaconda tensorflow-gpu
print(tensorflow.version ) 告诉我我的版本是1.14.0
之后一样
conda 更新 tensorflow-gpu
即使
我进入命令提示符:
Downloading and Extracting Packages
tensorflow-gpu-2.1.0 | ######################################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
C:\Windows\system32>set "KERAS_BACKEND="
C:\Windows\system32>python C:\Anaconda3\etc\keras\load_config.py 1>temp.txt
C:\Windows\system32>set /p KERAS_BACKEND= 0<temp.txt
C:\Windows\system32>del temp.txt
C:\Windows\system32>python -c "import keras" 1>nul 2>&1
C:\Windows\system32>if errorlevel 1 (
ver 1>nul
set "KERAS_BACKEND=theano"
python -c "import keras" 1>nul 2>&1
)
但我还在 1.14.0
解决方案
您可以通过在 Anaconda Prompt 中键入此命令来更新 Tensorflow。
conda install -c conda-forge tensorflow=2.1.0
希望这有效!
推荐阅读
- javascript - 使用javascript在多行表中显示下拉项的值
- python - 使用 Python 解析复杂的 xml 文件
- laravel-nova - Laravel Nova 管理面板中的动态资源
- dbt - 如何为将用于完全刷新的表创建备份?
- mysql - 如何优化此查询?
- node.js - How to listen for new users when using Firebase's listUsers()
- python-3.x - How to rectify error WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available?
- function - Call function with a specific default argument in JavaScript?
- php - prevent second row of lists from indenting
- angular - remove clustering onclick bingmaps