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?
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.
Install multiple versions of Python. Install the latest development version of Python. Switch between the installed versions. Use virtual environments with pyenv.
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 .
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With