Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will installing new version of Python conflict with old versions

Tags:

python

I'm a newbie programmer just installing Python 3.2, but I know I also have an older version of Python on my machine. in fact, I think Macbook comes with it installed. Do I have to worry about having different versions on my computer when I try to start learning Python?

like image 252
Leahcim Avatar asked Apr 05 '11 13:04

Leahcim


People also ask

Do I need to uninstall Python before installing new version?

No you do not but if you are on windows you will have to name your newer version of Python something else for example "python2" or "python33" so that there is no conflict when it searches the path for an executable.

Can I have 2 versions of Python installed?

Install multiple versions of Python. Install the latest development version of Python. Switch between the installed versions. Use virtual environments with pyenv.

Does it matter which version of Python is installed?

Yes, the (major) version number matters. Make sure you select python documentation that matches your python version. If you want to also find out what Python is associated with .

Can multiple versions of Python run on the same machine?

If you wish to use multiple versions of Python on a single machine, then pyenv is a commonly used tool to install and switch between versions. This is not to be confused with the previously mentioned depreciated pyvenv script. It does not come bundled with Python and must be installed separately.


1 Answers

For the most part, you don't have to worry about conflicts with system Python. In fact it is recommended to install a different Python version instead of working with system Python. Also consider using virtualenv and virtualenvwrapper to maintain any dependencies for each project easily without conflicts.

like image 55
Praveen Gollakota Avatar answered Sep 18 '22 17:09

Praveen Gollakota