Я пытаюсь установить TensorFlow 2.0. У меня есть старая версия TF на моем компьютере. Я попробовал ответы, данные здесь , но они не сработали для моего случая.
Текущая версия может быть импортирована в консоли Python. Но я не могу его использовать. Например,
import tensorflow as tf
const = tf.constant(2.0, name="const")
возвращает
AttributeError: module 'tensorflow' has no attribute 'constant'
Кроме того, я не могу увидеть версию TF. Я пробовал следующее, и они не работали.
tf.version
tf.VERSION
tf.__version__
Я тоже пробовал это:
pip show tensorflow
pip list | grep tensorflow
Ничего не показывает.
Я пытался удалить TF: (то же самое с sudo)
pip uninstall tensorflow
WARNING: Skipping tensorflow as it is not installed.
Я пытался установить tenorflow
pip install tensorflow
Collecting tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
и
pip install tensorflow==2.0.0-beta1
Collecting tensorflow==2.0.0-beta1
ERROR: Could not find a version that satisfies the requirement tensorflow==2.0.0-beta1 (from versions: none)
ERROR: No matching distribution found for tensorflow==2.0.0-beta1
Есть предложения?