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

Pubblicato il: 02 novembre 2018
sul canale di: 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


In questa pagina del sito puoi guardare il video online Switching Between Python Versions in Windows - Use Builtin PyLauncher To Switch Between Python 2 & 3 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato in2Rafi 02 novembre 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,973 volte e gli è piaciuto 47 spettatori. Buona visione!