How do I check which version of python is runnning my script?

Check the Python version on the command line:

python --version
python -V

Check the Python version in script at run time:

>>> from platform import python_version
>>> print(python_version())
>>> import sys
>>> print(sys.version)

--

--

--

Win is every step of the process.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Reduce Cost and Increase Productivity with Value Added IT Services from buzinessware — {link} -

I/O in Ruby — what works and what doesn’t?

To normalize or to denormalize, that is the question

Exposing Applications at AWS EKS and Integrating with Other AWS Services

4 Types of Agile Projects that Aren’t Software

Photographer Box Writeup

CS371P Fall 2021 Week 3: Vishal Tak

Host a static website on AWS under a minute with Terraform

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jan

Jan

Win is every step of the process.

More from Medium

CIDR blocks and IP count in VPC

How to Migrate to Canada in 2022 — CIC Canada Jobs

Simulation for robot development

A Few Simple Conclusions on a Few Simple Topics