Likewise method-1, we cannot get the released date and time of the current version in method-2, that’s a disadvantage.įinally, we learned how to check the current version of Python using Python. from platform import python_versionĪs a result, the Output will be 3.8.10 which will be the same as method-1.īoth the methods are equally important we can use any one of these methods to check the current version of Python. We need to import a module named platform where a lot of information regarding our system will be present, which includes OS info, Python version, and many more. Method-2: For finding the current Python version Output for method -1 3.8.10 (default, Jun 2 2021, 10:49:15) Īs a result, the current Python version is 3.8.10, and ( Jun 2, 2021, 10:49:15 ) tells us about, the date and time in which the 3.8.10 version is released. print(sys.version)īy using the above print statement we can get the current version of Python. Now, by importing the sys module, we can access all the functions and variables present in it.Īt last, this is the time to find out the current version of Python. A tensorflow installation wheel that matches the current Python environment couldnt be found by the package manager. Importing and Implementation of codeįirst of all, we need to import a module named sys which is useful for checking the current version of Python. In method-1, we need to import the sys module. There are two methods for checking the current version using Python, let us discuss one by one: Method-1: For checking the current version of Python We are going to implement the code in just 2 lines, which seems interesting. Package updates include: astropy 4.0.2 beautifulsoup4 4.9.3 bokeh 2.2.3 dask 2.30.0 ipython 7.19.0 jupyterlab 2.2.6 matplotlib 3.3.2 networkx 2. Python Dictionaries Access Items Change Items Add Items Remove Items Loop Dictionaries Copy Dictionaries Nested Dictionaries Dictionary Methods Dictionary Exercise Python If.Else Python While Loops Python For Loops Python Functions Python Lambda Python Arrays Python Classes/Objects Python Inheritance Python Iterators Python Polymorphism Python Scope Python Modules Python Dates Python Math Python JSON Python RegEx Python PIP Python Try.Hey coder! under this article, we are going to check the current Python version using a Python program. We are pleased to announce the release of Anaconda Individual Edition 2020.11 You’ll find 119 package updates and 7 newly added packages since the last release of the installer in July.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |