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

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Jan 24 15:28:02 CET 2013


On 24/01/2013 13:46, 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
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>

See http://www.python.org/dev/peps/pep-0397/ which leads to 
https://bitbucket.org/vinay.sajip/pylauncher

-- 
Cheers.

Mark Lawrence



More information about the Tutor mailing list