Use à Python 2 module with Python 3

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Mar 9 19:07:06 EDT 2015


On 09/03/2015 22:30, Michael Parchet wrote:
> Hello,
>
> For a new project, a person recommande me to use Python 3
>
> can I use Python 3 with a Python 2 y module ex : pyQt 4 ?
>
> Tanks for your answer
>
> Best regards
>
> mparchet
>

Python 2 code can be converted with 
https://docs.python.org/3/library/2to3.html

For PyQt specifically see https://wiki.python.org/moin/PyQt

IIRC I saw your name earlier today on the bug tracker regarding Windows. 
  In that case this site http://www.lfd.uci.edu/~gohlke/pythonlibs/ is a 
must know about, it's often far easier to get a binary installer from 
there than mess about trying to build something yourself.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list