[Tutor] how can i use python 2 alongside 3?

Dave Angel d at davea.name
Thu Jan 24 16:53:42 CET 2013


On 01/24/2013 08:46 AM, Matthew Ngaha wrote:
> hi guys i am a python 3.1.1. user but really need to use python 2 to
> be able to use certain libraries and frameworks. i have installed
> python 2.7 but they cant run together as all .py and .pyw files are
> opened with python 3. i can open simple python 2 files by right
> clicking and finding pythons 2's python.exe, but these only works for
> simple files with no imports because the import i think seems to look
> in the python 3 directory and can't find the packages.
>
> i have checked stackoverflow for answers but i get lost in all the
> terms and keywords they use to solve this. is there a simple
> straightfoward way to fix this that is easy for someone like me to
> understand or follow?
>
> thanks. i use windows vista
>

Python 3.3 for Windows comes with a "launcher", which will approximate 
(for Python only) what Unix and Linux users have had for years for any 
scripting language.  You can get it separately, as Mark Lawrence has 
said, but maybe it's time to bring your 3.x current.


-- 
DaveA


More information about the Tutor mailing list