How to install Anaconda for Python on Ubuntu?
Is there a way to use apt-get install
?
I only have command line access to my server. How do I install Anaconda on Ubuntu 14.04 from the command line?
How to install Anaconda for Python on Ubuntu?
Is there a way to use apt-get install
?
I only have command line access to my server. How do I install Anaconda on Ubuntu 14.04 from the command line?
You can use
wget
to download from commandline:For Python3:
32 bits version:
64 bits version
And after download is finished do:
32 bits:
64 bits:
For users using Python2, the "3" directly after Anaconda should be changed to a 2.
Source: https://conda.io/docs/user-guide/install/linux.html
See Anaconda Hompepage for more detail!
Installation Instructions [Linux Install]
These instructions explain how to install Anaconda on a Linux system.
After downloading the Anaconda installer, run the following command from a terminal:
After accepting the license terms, you will be asked to specify the install location (which defaults to
~/anaconda
).Note: You do NOT need root privileges to install Anaconda, if you select a user writable install location, such as
~/anaconda.*
After the self extraction is finished, you should add the anaconda binary directory to your PATH environment variable.As all of Anaconda is contained in a single directory, uninstalling Anaconda is easy (you simply remove the entire install location directory).
If you encounter any issues, please try disabling your antivirus software. Linux/OS X Uninstall
As all of Anaconda is contained in a single directory, uninstalling Anaconda is simple (you simply remove the entire install location directory):
Nobody has explained here why
apt-get
and other package managers don't have packages for anaconda.An important reason for this is that anaconda is meant to be usable by a user who, for whatever reason, doesn't have root privileges. In that case the user just installs into
~/anaconda
, changes her ownPATH
andPYTHONHOME
variables so as to run~/anaconda/python
, and is capable of controlling her personal python distribution, while modifying the "system" python might require an administrator's help.Package managers always require sysadmin privileges.
If you are trying to it entirely in command line you use a bash script python 2 anaconda install bash script:
python 3 anaconda install bash script
Source: https://medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a
In addition to @Vivek's answer, to get the latest python3 64-bit Linux version:
The
grep
filters in line 3 can be altered to match your requirements, of course.Q: What is going on here?
wget -q -O - URL
quietly (-q
) gets the html atURL
(in this case https://repo.continuum.io/archive/, which is accessed as$CONTREPO
) and sends it to standard out (-O -
).grep "text"
returns the lines from its input that containtext
. So first, we select all lines that contain "Anaconda3", then of those, we select all lines containing "Linux", and then all lines containing "86_64" (for the 64-bit version).head -n 1
returns the first line of the input. I rely on the website maintaining order so that the most recent version is on top.cut -d \" -f 2
splits the input on the double quote characters (-d \"
), which surround the filename in the HTML's href, and returns the second field (-f 2
), being the target of the href.-b -p path
options make the installation non-interactive "silent-mode", where you silently accept the license and are not asked for confirmation for the installation path.Watch this video for complete installation
Download Anaconda from continuum here
To install Python 3.6 version
For Python 2.7 version
Run Navigator
Run Spyder IDE
Run Jupyter Notebook
Follow these steps:
export PATH="~/anaconda/bin:$PATH"
Then you can update them with:
You can use Pyenv to install Anaconda, and then easily switch back and forth between your system Python and your Anaconda Python:
pyenv install anaconda3-5.3.0
(pynev install -l
to see what versions of anaconda are available)I have followed install anaconda on ubuntu tutorial and installed it on my system. You can run following commands.
conda update conda conda update anaconda
Take a look at the Anaconda repo archive page and select an appropriate version that you'd like to install.
After that, just do:
Concrete Example:
As of this writing, Anaconda3-2019.03 is the latest version. So,
After installation is completed, you can also optionally delete the installation script by: