Can we have python 2.x as well as python 3.x on the same computer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Can we have python 2.x as well as python 3.x on the same computer?

Is it safe? Will it affect any functionality?

4th Jun 2017, 3:57 PM
Hariharasubramanian
5 Answers
+ 7
Thank you all
9th Jun 2017, 2:31 PM
Hariharasubramanian
+ 5
I have both on Windows and PyCharm handles them well no problem.
4th Jun 2017, 8:11 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 4
On linux ( not sure for other platforms ) you can have both installed without any problem... and even have differents configurations ( modules installed ) by using virtual environnements... http://python-guide-pt-br.readthedocs.io/en/latest/dev/virtualenvs/
4th Jun 2017, 4:57 PM
visph
visph - avatar
+ 1
idk but why do you want to do that?
4th Jun 2017, 4:02 PM
_Retr0/-
_Retr0/- - avatar
0
Yes, but you will need to take extra care when running your programs (to make sure that the correct interpreter is used).
9th Jun 2017, 9:46 AM
Bogdan Sass
Bogdan Sass - avatar