How to Check the Python Version in Google Colab?

Estimated read time 1 min read

You can check the Python version in Google Colab by running the following code in a code cell:

import sys
print("Python version")
print(sys.version)
print("Version info.")
print(sys.version_info)

This will display the Python version and version information in the output cell, which you can find below the code cell.

Alternatively, you can check the Python version by selecting the “Runtime” menu at the top of the Colab window, then selecting “Change runtime type”. This will open a dialog box where you can see the current Python version and select a different version if needed.

You May Also Like

More From Author

+ There are no comments

Add yours

Leave a Reply