问题
I am not able to use Tensorflow in Python 3.8.
C:\Users\Shail>pip install tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
回答1:
Tensorflow (version: 2.1, as of now) is not supported on python 3.8. It was widely expected for TF2.2 to be supported for 3.8 but tf-nightly for 2.2 as of today's release (18 Jan, 2020) do not have wheel for python 3.8.
UPDATE: Even this release (19 Feb, 2020) of tf-nightly does not support python 3.8 yet. This is because many underlying packages are not yet written for 3.8.
You can wait for a supported version or simply go with python 3.5-3.7 for now.
UPDATE 2: This release (26th April 2020) for tf-nightly got support for python 3.8 for many linux platform. You can grab that here: https://pypi.org/project/tf-nightly/#files
来源:https://stackoverflow.com/questions/59458846/i-am-not-able-to-use-tensorflow-in-python-3-8