Port for Python2 code | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

Port for Python2 code

What is the easiest way to run python2 code on device with python3 installed without running into errors ?

8th Feb 2018, 7:57 PM
Samces
2 Respostas
+ 5
install python2 right along side it. I've done it before!
9th Feb 2018, 1:56 AM
Ahri Fox
Ahri Fox - avatar
+ 1
Use futurize: http://python-future.org/automatic_conversion.html
9th Feb 2018, 12:43 AM
Raphael Keymer
Raphael Keymer - avatar