Skip to content

Instantly share code, notes, and snippets.

@tchiavegatti
Last active November 15, 2021 20:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tchiavegatti/8c68aaec3ecf40f072dc7c41e2e5d751 to your computer and use it in GitHub Desktop.
Save tchiavegatti/8c68aaec3ecf40f072dc7c41e2e5d751 to your computer and use it in GitHub Desktop.
[Check python version on a Jupyter notebook] #jupyter
# Check version runing on Jupyter notebook
from platform import python_version
print(python_version())
# Check version inside your Python program
import sys
print(sys.version)
# Check version in command line or shell
python --version
@RorisangSitoboli
Copy link

Thanks. Needed it for my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment