Help Save Code2care! 😢

I've lost 99% of my revenue to AdBlockers & AI. Your support could be the lifeline that keeps this passion project alive!

Buy Code2care a Coffee QR Code

Scan to Buy Me A Coffee and help me continue coding for you!

How to know the Python Version of Jupyter Notebook


If you want to know which specific version of Python you are using with your Jupyter Notebook, well you can write in a small code snippet one of the cells to quickly find out.

import sys
print(sys.version)

3.11.3 (main, Apr 7 2023, 20:13:31) [Clang 14.0.0 (clang-1400.0.29.202)]

As you can see I am using Python 3 version 3.11.3

Know Python Version Jupyter Notebook

Another quick way is by running the shell command in a cell.

!python3 --version

Python 3.11.3

You can even get the location where Python is installed using the which command.

which python3

/opt/homebrew/bin/python3

Python Version and Location in Jupyter Notebook

You can download this article in various formats for your convenience. Choose from the options below:

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has a Masters Degree in Computer Science with over 15+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright Code2care © 2024 | Privacy Policy | About Us | Contact Us | Search