3 ms·
My approach to using both py2 and py3 in windows: Use 2 folders of WinPython (completely portable) for py2 and py3. A shell script which changes all the nec
by pk78 9y ago
My approach to using both py2 and py3 in windows:
Use 2 folders of WinPython (completely portable) for py2 and py3.
A shell script which changes all the necessary env vars from 2->3, 3->2.
Just double-click on the shell script when you want to switch and you're done.
- gt_ 9y agoThis was my earlier approach before I moved to using 3 for most things. At that time, I tried moving env vars to 3->2 and using the Windows Launcher and haven’t looked back. It makes everything work so much better. This article actually does a fairly insufficient job of explaining it. The official docs on the Windows Launcher are worth working through. Being able to use #! in my scripts and work seamlessly with ‘py’ commands in terminal is superior in every way.