Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get python version in code

import platform

print(platform.python_version())
Comment

check python version

# To check Python version 
python -V
----or----
python --version
Comment

check python version

# 2 ways to check python version
# In the terminal/cmd write the following:

# Way 1
python -V

# Way 2
python -c "import sys; print(sys.version)"
Comment

check python version

python --versrion
print(sys.version_info)
# sys.version_info(major=3, minor=8, micro=3, releaselevel='final', serial=0)

import platform
print(platform.python_version())

import sys
print(sys.version)
Comment

check python version

python3 --versionpip3 --version
Comment

check python version

# To check your Python version in the command line use:
py --version
Comment

check python version

python3 -v
Comment

PREVIOUS NEXT
Code Example
Python :: ver todas linhas dataframe pandas 
Python :: web3py to wei 
Python :: upgrade package python 
Python :: python find most occuring element 
Python :: imbade image to jupyter notebook 
Python :: python range for float 
Python :: python get int from string 
Python :: python format currency 
Python :: how to sort in pandas 
Python :: jupyter read in csv 
Python :: How to check how much time elapsed Python 
Python :: python read file 
Python :: how to convert kg to g using python 
Python :: python generate secret key 
Python :: python check if list contains elements of another list 
Python :: import all images from folder python 
Python :: how to make text bold in tkinter 
Python :: PySpark columns with null or missing values 
Python :: python spammer messages 
Python :: python generate rsa key pair 
Python :: matplotlib subplots title 
Python :: maximizar ventana tkinter python 
Python :: rename the console python 
Python :: get all type of image in folder python 
Python :: matplotlib log2 xaxis 
Python :: How to subtract a day from a date? 
Python :: python - remove repeted columns in a df 
Python :: opencv trim video duration 
Python :: python read_excel index_col 
Python :: pandas read csv without index 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =