python-tensorflowHow can I determine the best Python version to use for TensorFlow?
The best Python version to use for TensorFlow depends on the version of TensorFlow you are using. Generally speaking, Python 3.5 or higher is recommended for use with the latest version of TensorFlow.
For example, if you are using TensorFlow 2.0, you should use Python 3.5 or higher.
import tensorflow as tf
print(tf.__version__)
2.0.0
To check the version of Python you are using, you can use the following code snippet:
import sys
print(sys.version)
3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]
If you are using an earlier version of TensorFlow, you may need to use a different version of Python. For example, TensorFlow 1.14 requires Python 3.4 or higher.
The following list provides more information about the compatibility of different versions of Python and TensorFlow:
More of Python Tensorflow
- How do I resolve a SymbolAlreadyExposedError when the symbol "zeros" is already exposed as () in TensorFlow Python util tf_export?
- How can I use Python and TensorFlow to handle illegal hardware instructions in Zsh?
- How can I use YOLOv3 with Python and TensorFlow?
- ¿Cómo implementar reconocimiento facial con TensorFlow y Python?
- How do I use the Xception model in TensorFlow with Python?
- How can I use TensorFlow Lite with XNNPACK in Python?
- How can I free up GPU memory when using Python and TensorFlow?
- How can I use Tensorflow 1.x with Python 3.8?
- How do I check which version of TensorFlow I am using with Python?
- How can I install and use TensorFlow on a Windows machine using Python?
See more codes...