Switching Between Python Versions in Windows - Use Builtin PyLauncher To Switch Between Python 2 & 3

Veröffentlicht am: 02 November 2018
auf dem Kanal: in2Rafi
4,973
47

Switching Between Python Versions in Windows is really simple with PyLauncher. Also you can use a special comment on the top of python scripts to tell PyLuncher whether the python script will run using Python 2 or Python 3. In this video I showed you exactly how you can easily switch Python versions in Windows. If you have both Python 2.x and Python 3.x installed on your Windows computer and want to use both Python versions then this video is right for you. The comment you need to put at the top of the Python scripts is...

-- For Running a Python Script Using Python 2
#!python2

-- For Runnning a Python Script Using Python 3
#!Python3

You Can Read More of PyLauncher From Here...
https://docs.python.org/3/using/windo...

Some experts recommend to slightly modify Python files and in this way they trick Python to launch their desired Python version. But I strongly recommend you to stay away from this kind of tricks as this can lead to serious problem when you go for deploying Python software. Rather Python latest versions are packed with PyLauncher which can be used to switch between Python 2 and 3. Form command line you can use py.exe to run Python 2 and 3 side by side.

How Do You Switch Between Python 2 and 3 and Vice Versa

-- To Use Python 2 in Command Line
py -2

-- To Use Python 3 in Command Line
py -3


===========My Other Python Videos=============

-- How to Install Python 2.x & Python 3.x in Windows 10/8/7
   • How To Download & Install Python 2.7 & Pyt...  

=================== About in2Rafi ===================
in2Rafi is an educational channel aimed to provide tech tips, tricks, hacks and solutions to everyone. In in2Rafi channel I regularly publish videos on Android devices, iPhone, iPad, iOS devices, Windows O/S, Programming, Hardware relevant problems and solutions, Graphic design, Video editing, SEO, Digital marketing & Microsoft Office suites etc. Please support my channel by subscribing my channel from here...

=================== Connect With Me =================
Facebook Fan Page :   / in2rafiinfo-423057948116014  
Facebook Group :
Twitter :   / rafibiz  
Tumblr :   / in2rafi2018  
Blogger : http://in2rafi2018.blogspot.com/
Linkedin :
Reddit :
Stumbleupon : https://mix.com/hossainrafi
Personal Website : http://in2rafi.info/
Email : shrafibd@gmail.com


Auf dieser Seite können Sie das Online-Video Switching Between Python Versions in Windows - Use Builtin PyLauncher To Switch Between Python 2 & 3 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer in2Rafi 02 November 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 4,973 Mal angesehen und es wurde von 47 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!