【发布时间】:2018-11-21 22:59:56
【问题描述】:
我正在尝试在 conda 环境(Ubuntu 16.04)中升级到 Tensorflow 1.9。我正在使用 python 3.6.5。当我尝试这个时:
source activate myenv
sudo -H pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0rc0-cp36-cp36m-linux_x86_64.whl
我得到错误:
tensorflow-1.9.0rc0-cp36-cp36m-linux_x86_64.whl is not a supported wheel on this platform.
看起来很奇怪,因为同样的事情在 TF 1.8 上运行良好
TensorFlow 似乎在没有 sudo -H 的情况下可以正常安装,但是当我尝试时:
python -c "import tensorflow as tf; print(tf.__version__)"
我收到以下错误:
from tensorflow.python.keras._impl.keras.backend import abs
ImportError: cannot import name 'abs'
我无法从 conda 安装,因为当我检查时它仍然是 1.8:
conda install -c conda-forge tensorflow
【问题讨论】:
标签: python tensorflow installation python-wheel incompatibility