-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
I am sure I installed the v0.7.0 one with TF 1.15.0 one macOS,
pip3.6 install --user tensorflow_probability==0.7.0
but when importing
~/Library/Python/3.6/lib/python/site-packages/tensorflow_probability/__init__.py in _ensure_tf_install()
64 "Please upgrade TensorFlow to proceed.".format(
65 required=required_tensorflow_version,
---> 66 present=tf.__version__))
67
68
ImportError: This version of TensorFlow Probability requires TensorFlow version >= 2.1; Detected an installation of version 1.15.0. Please upgrade TensorFlow to proceed.
and in the file of tensorflow_probability/__init__.py, it seems that the later versions automatically disable the 1.x version.
required_tensorflow_version = "2.1"
# required_tensorflow_version = "1.15" # Needed internally -- DisableOnExport
if (distutils.version.LooseVersion(tf.__version__) <
distutils.version.LooseVersion(required_tensorflow_version)):
raise ImportError(
"This version of TensorFlow Probability requires TensorFlow "
"version >= {required}; Detected an installation of version {present}. "
"Please upgrade TensorFlow to proceed.".format(
required=required_tensorflow_version,
present=tf.__version__))
How can I fix this issue? I do not want to install TF 2.x now.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels