Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing anaconda over existing python system?

I found an old windows xp machine running Python 2.5.2. I would like to use Anaconda instead. Can I just install Anaconda on it and do I have to uninstall Python 2.5.2? Similarly, I have a Mac system with Python 2.7.9 working with some NLT libraries and I'd like to get Anaconda running on it too. What's the best course of action to get Anaconda over an existing system that already has python?

like image 259
anjchang Avatar asked Jan 20 '16 17:01

anjchang


People also ask

Can I install Anaconda if I already have Python installed?

Yes to have both installed No to uninstall 3.7 and install Anaconda.

Should I delete Python before installing Anaconda?

No need to uninstall Python.

Can I have both Python and Anaconda installed?

If You Already Have Python InstalledLeaving it unchecked means that you will have to use Anaconda Command Prompt in order to use Anaconda. So, unless you add the PATH later, you will not be able to use Python from your command prompt.

Should I install Anaconda or Python?

Since ActiveState provides commercial support, ActivePython is the best choice for those focused on building commercial applications. Anaconda is a good choice for those focused on creating non-commercial data science applications since you can take advantage of Anaconda's proven Python ecosystem for free.


2 Answers

Simply install.

Anaconda manages Python for you and creates the appropriate bin directory containing the executable and pkgs directory containing installed packages. All this in a directory structure named anaconda (or anaconda3 if using Python 3). Additionally, it alters the search path so the Python inside the anaconda/bin/ directory is the one used when the command python is issued.

On Ubuntu, it looks like this:

# added by Anaconda 2.3.0 installer export PATH="/home/jim/anaconda/bin:$PATH" 

By adding the new path in the beginning of PATH it assures the anaconda bin/python will be located first.

Warning:

do I have to uninstall Python 2.5.2?

In general never remove the 'original' Python unless explicitly allowed by official sources. In many operating systems Python is a dependency; it must stay around. I can't speak for old versions of Windows but in general if you're not sure if it is needed or not leave it.

Removing it might break some completely unrelated things.

like image 185
Dimitris Fasarakis Hilliard Avatar answered Sep 25 '22 08:09

Dimitris Fasarakis Hilliard


The Python installation on a Mac is not affected at all when installing Anaconda. However, Anaconda manipulates the $PATH environment variable. No need to uninstall Python.

like image 21
Daniel Schneiter Avatar answered Sep 22 '22 08:09

Daniel Schneiter