How to install Anaconda on Ubuntu?











up vote
69
down vote

favorite
32












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?










share|improve this question
























  • I'm sorry but I just have to ask does your system have the package buns installed? I've heard Anaconda only works with that installed.
    – ThisIsNotAnId
    Feb 6 '17 at 15:57










  • it would be ideal if there was an answer entirely in the command line. Specially, it seems that the current answers do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived.
    – Charlie Parker
    Feb 8 '17 at 23:09















up vote
69
down vote

favorite
32












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?










share|improve this question
























  • I'm sorry but I just have to ask does your system have the package buns installed? I've heard Anaconda only works with that installed.
    – ThisIsNotAnId
    Feb 6 '17 at 15:57










  • it would be ideal if there was an answer entirely in the command line. Specially, it seems that the current answers do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived.
    – Charlie Parker
    Feb 8 '17 at 23:09













up vote
69
down vote

favorite
32









up vote
69
down vote

favorite
32






32





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?










share|improve this question















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?







apt software-installation python anaconda






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 24 at 11:23









muru

135k19286485




135k19286485










asked Aug 2 '14 at 15:42









alvas

80761841




80761841












  • I'm sorry but I just have to ask does your system have the package buns installed? I've heard Anaconda only works with that installed.
    – ThisIsNotAnId
    Feb 6 '17 at 15:57










  • it would be ideal if there was an answer entirely in the command line. Specially, it seems that the current answers do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived.
    – Charlie Parker
    Feb 8 '17 at 23:09


















  • I'm sorry but I just have to ask does your system have the package buns installed? I've heard Anaconda only works with that installed.
    – ThisIsNotAnId
    Feb 6 '17 at 15:57










  • it would be ideal if there was an answer entirely in the command line. Specially, it seems that the current answers do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived.
    – Charlie Parker
    Feb 8 '17 at 23:09
















I'm sorry but I just have to ask does your system have the package buns installed? I've heard Anaconda only works with that installed.
– ThisIsNotAnId
Feb 6 '17 at 15:57




I'm sorry but I just have to ask does your system have the package buns installed? I've heard Anaconda only works with that installed.
– ThisIsNotAnId
Feb 6 '17 at 15:57












it would be ideal if there was an answer entirely in the command line. Specially, it seems that the current answers do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived.
– Charlie Parker
Feb 8 '17 at 23:09




it would be ideal if there was an answer entirely in the command line. Specially, it seems that the current answers do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived.
– Charlie Parker
Feb 8 '17 at 23:09










7 Answers
7






active

oldest

votes

















up vote
51
down vote



accepted










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:



$ bash Anaconda-2.x.x-Linux-x86[_64].sh


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):



$ rm -rf ~/anaconda





share|improve this answer

















  • 7




    how would you recommend installing systemwide?
    – drevicko
    Jan 15 '16 at 16:53






  • 2




    @nealmcb on my SSD it took less than 10 minutes
    – Ciprian Tomoiagă
    Sep 22 '16 at 12:57






  • 4




    how do you do the first step in the terminal without a web browser? I am trying to run this in a docker container so I need the command.
    – Charlie Parker
    Jan 17 '17 at 0:17






  • 2




    So you don't know how to do the "After downloading the Anaconda installer" in the command line? (I am quoting your answer)
    – Charlie Parker
    Feb 8 '17 at 22:29






  • 1




    Be careful as Anaconda seems to install their own version of moc (for building Qt apps), which may conflict with the system libraries if you compile when /home/USER/anaconda3/bin is in your path.
    – landroni
    Feb 28 '17 at 17:16


















up vote
52
down vote



+50










You can use wget to download from commandline:



For Python3:





  • 32 bits version:



    wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86.sh



  • 64 bits version



    wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh



And after download is finished do:





  • 32 bits:



    bash Anaconda-5.3.1-Linux-x86.sh



  • 64 bits:



    bash Anaconda3-5.3.1-Linux-x86_64.sh



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






share|improve this answer



















  • 2




    how do i update anaconda?
    – alvas
    Aug 6 '14 at 15:26






  • 4




    $ conda update conda, $ conda update anaconda. Check docs.continuum.io/anaconda/install.html
    – Vivek
    Aug 6 '14 at 17:01












  • from your wget commands, it seems that its not possible to install anaconda through apt-get or some more "official" ubuntu package manager? Is that right?
    – Charlie Parker
    Jan 17 '17 at 0:19










  • it seems that the current answer do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived. Do you know how to d that part?
    – Charlie Parker
    Feb 8 '17 at 23:10






  • 2




    This installs anaconda for python2, not python3. (Just a clarification to future readers).
    – k_g
    Feb 20 '17 at 2:39




















up vote
27
down vote













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 own PATH and PYTHONHOME 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.






share|improve this answer






























    up vote
    8
    down vote













    In addition to @Vivek's answer, to get the latest python3 64-bit Linux version:



    CONTREPO=https://repo.continuum.io/archive/
    # Stepwise filtering of the html at $CONTREPO
    # Get the topmost line that matches our requirements, extract the file name.
    ANACONDAURL=$(wget -q -O - $CONTREPO index.html | grep "Anaconda3-" | grep "Linux" | grep "86_64" | head -n 1 | cut -d " -f 2)
    wget -O ~/Downloads/anaconda.sh $CONTREPO$ANACONDAURL
    bash ~/Downloads/anaconda.sh


    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 at URL (in this case https://repo.continuum.io/archive/, which is accessed as $CONTREPO) and sends it to standard out (-O -).

    • | is called "pipe", and sends the output of the preceding command to the next command.


    • grep "text" returns the lines from its input that contain text. 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.






    share|improve this answer





















    • Exactly what I was looking for, thanks again!
      – cbcoutinho
      Jan 30 '17 at 0:20


















    up vote
    8
    down vote













    If you are trying to it entirely in command line you use a bash script
    python 2 anaconda install bash script:



    # Go to home directory
    cd ~

    # You can change what anaconda version you want at
    # https://repo.continuum.io/archive/
    wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
    bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
    rm Anaconda2-4.2.0-Linux-x86_64.sh
    echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc

    # Refresh basically
    source .bashrc

    conda update conda


    python 3 anaconda install bash script



    # Go to home directory
    cd ~

    # You can change what anaconda version you want at
    # https://repo.continuum.io/archive/
    wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
    bash Anaconda3-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
    rm Anaconda3-4.2.0-Linux-x86_64.sh
    echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc

    # Refresh basically
    source .bashrc

    conda update conda


    Source: https://medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a






    share|improve this answer























    • This actually answers the question and should be the accepted answer
      – Monica Heddneck
      May 17 at 22:06


















    up vote
    4
    down vote













    Watch this video for complete installation



    Download Anaconda from continuum here



    To install Python 3.6 version



    sudo bash Anaconda3-4.3.0-Linux-x86_64.sh 


    For Python 2.7 version



     sudo bash Anaconda2-4.3.0-Linux-x86_64.sh


    Run Navigator



    anaconda-navigator


    Run Spyder IDE



    spyder


    Run Jupyter Notebook



    jupyter-notebook





    share|improve this answer






























      up vote
      0
      down vote













      You can use Pyenv to install Anaconda, and then easily switch back and forth between your system Python and your Anaconda Python:




      1. Install Pyenv


      2. pyenv install anaconda3-5.3.0 (pynev install -l to see what versions of anaconda are available)






      share|improve this answer





















        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "89"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f505919%2fhow-to-install-anaconda-on-ubuntu%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        7 Answers
        7






        active

        oldest

        votes








        7 Answers
        7






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        51
        down vote



        accepted










        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:



        $ bash Anaconda-2.x.x-Linux-x86[_64].sh


        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):



        $ rm -rf ~/anaconda





        share|improve this answer

















        • 7




          how would you recommend installing systemwide?
          – drevicko
          Jan 15 '16 at 16:53






        • 2




          @nealmcb on my SSD it took less than 10 minutes
          – Ciprian Tomoiagă
          Sep 22 '16 at 12:57






        • 4




          how do you do the first step in the terminal without a web browser? I am trying to run this in a docker container so I need the command.
          – Charlie Parker
          Jan 17 '17 at 0:17






        • 2




          So you don't know how to do the "After downloading the Anaconda installer" in the command line? (I am quoting your answer)
          – Charlie Parker
          Feb 8 '17 at 22:29






        • 1




          Be careful as Anaconda seems to install their own version of moc (for building Qt apps), which may conflict with the system libraries if you compile when /home/USER/anaconda3/bin is in your path.
          – landroni
          Feb 28 '17 at 17:16















        up vote
        51
        down vote



        accepted










        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:



        $ bash Anaconda-2.x.x-Linux-x86[_64].sh


        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):



        $ rm -rf ~/anaconda





        share|improve this answer

















        • 7




          how would you recommend installing systemwide?
          – drevicko
          Jan 15 '16 at 16:53






        • 2




          @nealmcb on my SSD it took less than 10 minutes
          – Ciprian Tomoiagă
          Sep 22 '16 at 12:57






        • 4




          how do you do the first step in the terminal without a web browser? I am trying to run this in a docker container so I need the command.
          – Charlie Parker
          Jan 17 '17 at 0:17






        • 2




          So you don't know how to do the "After downloading the Anaconda installer" in the command line? (I am quoting your answer)
          – Charlie Parker
          Feb 8 '17 at 22:29






        • 1




          Be careful as Anaconda seems to install their own version of moc (for building Qt apps), which may conflict with the system libraries if you compile when /home/USER/anaconda3/bin is in your path.
          – landroni
          Feb 28 '17 at 17:16













        up vote
        51
        down vote



        accepted







        up vote
        51
        down vote



        accepted






        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:



        $ bash Anaconda-2.x.x-Linux-x86[_64].sh


        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):



        $ rm -rf ~/anaconda





        share|improve this answer












        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:



        $ bash Anaconda-2.x.x-Linux-x86[_64].sh


        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):



        $ rm -rf ~/anaconda






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 6 '14 at 17:04









        v2r

        6,161113848




        6,161113848








        • 7




          how would you recommend installing systemwide?
          – drevicko
          Jan 15 '16 at 16:53






        • 2




          @nealmcb on my SSD it took less than 10 minutes
          – Ciprian Tomoiagă
          Sep 22 '16 at 12:57






        • 4




          how do you do the first step in the terminal without a web browser? I am trying to run this in a docker container so I need the command.
          – Charlie Parker
          Jan 17 '17 at 0:17






        • 2




          So you don't know how to do the "After downloading the Anaconda installer" in the command line? (I am quoting your answer)
          – Charlie Parker
          Feb 8 '17 at 22:29






        • 1




          Be careful as Anaconda seems to install their own version of moc (for building Qt apps), which may conflict with the system libraries if you compile when /home/USER/anaconda3/bin is in your path.
          – landroni
          Feb 28 '17 at 17:16














        • 7




          how would you recommend installing systemwide?
          – drevicko
          Jan 15 '16 at 16:53






        • 2




          @nealmcb on my SSD it took less than 10 minutes
          – Ciprian Tomoiagă
          Sep 22 '16 at 12:57






        • 4




          how do you do the first step in the terminal without a web browser? I am trying to run this in a docker container so I need the command.
          – Charlie Parker
          Jan 17 '17 at 0:17






        • 2




          So you don't know how to do the "After downloading the Anaconda installer" in the command line? (I am quoting your answer)
          – Charlie Parker
          Feb 8 '17 at 22:29






        • 1




          Be careful as Anaconda seems to install their own version of moc (for building Qt apps), which may conflict with the system libraries if you compile when /home/USER/anaconda3/bin is in your path.
          – landroni
          Feb 28 '17 at 17:16








        7




        7




        how would you recommend installing systemwide?
        – drevicko
        Jan 15 '16 at 16:53




        how would you recommend installing systemwide?
        – drevicko
        Jan 15 '16 at 16:53




        2




        2




        @nealmcb on my SSD it took less than 10 minutes
        – Ciprian Tomoiagă
        Sep 22 '16 at 12:57




        @nealmcb on my SSD it took less than 10 minutes
        – Ciprian Tomoiagă
        Sep 22 '16 at 12:57




        4




        4




        how do you do the first step in the terminal without a web browser? I am trying to run this in a docker container so I need the command.
        – Charlie Parker
        Jan 17 '17 at 0:17




        how do you do the first step in the terminal without a web browser? I am trying to run this in a docker container so I need the command.
        – Charlie Parker
        Jan 17 '17 at 0:17




        2




        2




        So you don't know how to do the "After downloading the Anaconda installer" in the command line? (I am quoting your answer)
        – Charlie Parker
        Feb 8 '17 at 22:29




        So you don't know how to do the "After downloading the Anaconda installer" in the command line? (I am quoting your answer)
        – Charlie Parker
        Feb 8 '17 at 22:29




        1




        1




        Be careful as Anaconda seems to install their own version of moc (for building Qt apps), which may conflict with the system libraries if you compile when /home/USER/anaconda3/bin is in your path.
        – landroni
        Feb 28 '17 at 17:16




        Be careful as Anaconda seems to install their own version of moc (for building Qt apps), which may conflict with the system libraries if you compile when /home/USER/anaconda3/bin is in your path.
        – landroni
        Feb 28 '17 at 17:16












        up vote
        52
        down vote



        +50










        You can use wget to download from commandline:



        For Python3:





        • 32 bits version:



          wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86.sh



        • 64 bits version



          wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh



        And after download is finished do:





        • 32 bits:



          bash Anaconda-5.3.1-Linux-x86.sh



        • 64 bits:



          bash Anaconda3-5.3.1-Linux-x86_64.sh



        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






        share|improve this answer



















        • 2




          how do i update anaconda?
          – alvas
          Aug 6 '14 at 15:26






        • 4




          $ conda update conda, $ conda update anaconda. Check docs.continuum.io/anaconda/install.html
          – Vivek
          Aug 6 '14 at 17:01












        • from your wget commands, it seems that its not possible to install anaconda through apt-get or some more "official" ubuntu package manager? Is that right?
          – Charlie Parker
          Jan 17 '17 at 0:19










        • it seems that the current answer do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived. Do you know how to d that part?
          – Charlie Parker
          Feb 8 '17 at 23:10






        • 2




          This installs anaconda for python2, not python3. (Just a clarification to future readers).
          – k_g
          Feb 20 '17 at 2:39

















        up vote
        52
        down vote



        +50










        You can use wget to download from commandline:



        For Python3:





        • 32 bits version:



          wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86.sh



        • 64 bits version



          wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh



        And after download is finished do:





        • 32 bits:



          bash Anaconda-5.3.1-Linux-x86.sh



        • 64 bits:



          bash Anaconda3-5.3.1-Linux-x86_64.sh



        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






        share|improve this answer



















        • 2




          how do i update anaconda?
          – alvas
          Aug 6 '14 at 15:26






        • 4




          $ conda update conda, $ conda update anaconda. Check docs.continuum.io/anaconda/install.html
          – Vivek
          Aug 6 '14 at 17:01












        • from your wget commands, it seems that its not possible to install anaconda through apt-get or some more "official" ubuntu package manager? Is that right?
          – Charlie Parker
          Jan 17 '17 at 0:19










        • it seems that the current answer do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived. Do you know how to d that part?
          – Charlie Parker
          Feb 8 '17 at 23:10






        • 2




          This installs anaconda for python2, not python3. (Just a clarification to future readers).
          – k_g
          Feb 20 '17 at 2:39















        up vote
        52
        down vote



        +50







        up vote
        52
        down vote



        +50




        +50




        You can use wget to download from commandline:



        For Python3:





        • 32 bits version:



          wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86.sh



        • 64 bits version



          wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh



        And after download is finished do:





        • 32 bits:



          bash Anaconda-5.3.1-Linux-x86.sh



        • 64 bits:



          bash Anaconda3-5.3.1-Linux-x86_64.sh



        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






        share|improve this answer














        You can use wget to download from commandline:



        For Python3:





        • 32 bits version:



          wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86.sh



        • 64 bits version



          wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh



        And after download is finished do:





        • 32 bits:



          bash Anaconda-5.3.1-Linux-x86.sh



        • 64 bits:



          bash Anaconda3-5.3.1-Linux-x86_64.sh



        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







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 24 at 1:25









        Evan Rosica

        1034




        1034










        answered Aug 6 '14 at 15:21









        Vivek

        1,00255




        1,00255








        • 2




          how do i update anaconda?
          – alvas
          Aug 6 '14 at 15:26






        • 4




          $ conda update conda, $ conda update anaconda. Check docs.continuum.io/anaconda/install.html
          – Vivek
          Aug 6 '14 at 17:01












        • from your wget commands, it seems that its not possible to install anaconda through apt-get or some more "official" ubuntu package manager? Is that right?
          – Charlie Parker
          Jan 17 '17 at 0:19










        • it seems that the current answer do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived. Do you know how to d that part?
          – Charlie Parker
          Feb 8 '17 at 23:10






        • 2




          This installs anaconda for python2, not python3. (Just a clarification to future readers).
          – k_g
          Feb 20 '17 at 2:39
















        • 2




          how do i update anaconda?
          – alvas
          Aug 6 '14 at 15:26






        • 4




          $ conda update conda, $ conda update anaconda. Check docs.continuum.io/anaconda/install.html
          – Vivek
          Aug 6 '14 at 17:01












        • from your wget commands, it seems that its not possible to install anaconda through apt-get or some more "official" ubuntu package manager? Is that right?
          – Charlie Parker
          Jan 17 '17 at 0:19










        • it seems that the current answer do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived. Do you know how to d that part?
          – Charlie Parker
          Feb 8 '17 at 23:10






        • 2




          This installs anaconda for python2, not python3. (Just a clarification to future readers).
          – k_g
          Feb 20 '17 at 2:39










        2




        2




        how do i update anaconda?
        – alvas
        Aug 6 '14 at 15:26




        how do i update anaconda?
        – alvas
        Aug 6 '14 at 15:26




        4




        4




        $ conda update conda, $ conda update anaconda. Check docs.continuum.io/anaconda/install.html
        – Vivek
        Aug 6 '14 at 17:01






        $ conda update conda, $ conda update anaconda. Check docs.continuum.io/anaconda/install.html
        – Vivek
        Aug 6 '14 at 17:01














        from your wget commands, it seems that its not possible to install anaconda through apt-get or some more "official" ubuntu package manager? Is that right?
        – Charlie Parker
        Jan 17 '17 at 0:19




        from your wget commands, it seems that its not possible to install anaconda through apt-get or some more "official" ubuntu package manager? Is that right?
        – Charlie Parker
        Jan 17 '17 at 0:19












        it seems that the current answer do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived. Do you know how to d that part?
        – Charlie Parker
        Feb 8 '17 at 23:10




        it seems that the current answer do not tell us how to download the most recent installer for Anaconda. i.e. the wget seem short lived. Do you know how to d that part?
        – Charlie Parker
        Feb 8 '17 at 23:10




        2




        2




        This installs anaconda for python2, not python3. (Just a clarification to future readers).
        – k_g
        Feb 20 '17 at 2:39






        This installs anaconda for python2, not python3. (Just a clarification to future readers).
        – k_g
        Feb 20 '17 at 2:39












        up vote
        27
        down vote













        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 own PATH and PYTHONHOME 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.






        share|improve this answer



























          up vote
          27
          down vote













          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 own PATH and PYTHONHOME 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.






          share|improve this answer

























            up vote
            27
            down vote










            up vote
            27
            down vote









            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 own PATH and PYTHONHOME 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.






            share|improve this answer














            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 own PATH and PYTHONHOME 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.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 26 '17 at 18:37









            Zanna

            49.2k13123234




            49.2k13123234










            answered Feb 6 '17 at 15:52









            user1416227

            44249




            44249






















                up vote
                8
                down vote













                In addition to @Vivek's answer, to get the latest python3 64-bit Linux version:



                CONTREPO=https://repo.continuum.io/archive/
                # Stepwise filtering of the html at $CONTREPO
                # Get the topmost line that matches our requirements, extract the file name.
                ANACONDAURL=$(wget -q -O - $CONTREPO index.html | grep "Anaconda3-" | grep "Linux" | grep "86_64" | head -n 1 | cut -d " -f 2)
                wget -O ~/Downloads/anaconda.sh $CONTREPO$ANACONDAURL
                bash ~/Downloads/anaconda.sh


                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 at URL (in this case https://repo.continuum.io/archive/, which is accessed as $CONTREPO) and sends it to standard out (-O -).

                • | is called "pipe", and sends the output of the preceding command to the next command.


                • grep "text" returns the lines from its input that contain text. 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.






                share|improve this answer





















                • Exactly what I was looking for, thanks again!
                  – cbcoutinho
                  Jan 30 '17 at 0:20















                up vote
                8
                down vote













                In addition to @Vivek's answer, to get the latest python3 64-bit Linux version:



                CONTREPO=https://repo.continuum.io/archive/
                # Stepwise filtering of the html at $CONTREPO
                # Get the topmost line that matches our requirements, extract the file name.
                ANACONDAURL=$(wget -q -O - $CONTREPO index.html | grep "Anaconda3-" | grep "Linux" | grep "86_64" | head -n 1 | cut -d " -f 2)
                wget -O ~/Downloads/anaconda.sh $CONTREPO$ANACONDAURL
                bash ~/Downloads/anaconda.sh


                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 at URL (in this case https://repo.continuum.io/archive/, which is accessed as $CONTREPO) and sends it to standard out (-O -).

                • | is called "pipe", and sends the output of the preceding command to the next command.


                • grep "text" returns the lines from its input that contain text. 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.






                share|improve this answer





















                • Exactly what I was looking for, thanks again!
                  – cbcoutinho
                  Jan 30 '17 at 0:20













                up vote
                8
                down vote










                up vote
                8
                down vote









                In addition to @Vivek's answer, to get the latest python3 64-bit Linux version:



                CONTREPO=https://repo.continuum.io/archive/
                # Stepwise filtering of the html at $CONTREPO
                # Get the topmost line that matches our requirements, extract the file name.
                ANACONDAURL=$(wget -q -O - $CONTREPO index.html | grep "Anaconda3-" | grep "Linux" | grep "86_64" | head -n 1 | cut -d " -f 2)
                wget -O ~/Downloads/anaconda.sh $CONTREPO$ANACONDAURL
                bash ~/Downloads/anaconda.sh


                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 at URL (in this case https://repo.continuum.io/archive/, which is accessed as $CONTREPO) and sends it to standard out (-O -).

                • | is called "pipe", and sends the output of the preceding command to the next command.


                • grep "text" returns the lines from its input that contain text. 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.






                share|improve this answer












                In addition to @Vivek's answer, to get the latest python3 64-bit Linux version:



                CONTREPO=https://repo.continuum.io/archive/
                # Stepwise filtering of the html at $CONTREPO
                # Get the topmost line that matches our requirements, extract the file name.
                ANACONDAURL=$(wget -q -O - $CONTREPO index.html | grep "Anaconda3-" | grep "Linux" | grep "86_64" | head -n 1 | cut -d " -f 2)
                wget -O ~/Downloads/anaconda.sh $CONTREPO$ANACONDAURL
                bash ~/Downloads/anaconda.sh


                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 at URL (in this case https://repo.continuum.io/archive/, which is accessed as $CONTREPO) and sends it to standard out (-O -).

                • | is called "pipe", and sends the output of the preceding command to the next command.


                • grep "text" returns the lines from its input that contain text. 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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 24 '16 at 12:25









                thorbjornwolf

                18112




                18112












                • Exactly what I was looking for, thanks again!
                  – cbcoutinho
                  Jan 30 '17 at 0:20


















                • Exactly what I was looking for, thanks again!
                  – cbcoutinho
                  Jan 30 '17 at 0:20
















                Exactly what I was looking for, thanks again!
                – cbcoutinho
                Jan 30 '17 at 0:20




                Exactly what I was looking for, thanks again!
                – cbcoutinho
                Jan 30 '17 at 0:20










                up vote
                8
                down vote













                If you are trying to it entirely in command line you use a bash script
                python 2 anaconda install bash script:



                # Go to home directory
                cd ~

                # You can change what anaconda version you want at
                # https://repo.continuum.io/archive/
                wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
                bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
                rm Anaconda2-4.2.0-Linux-x86_64.sh
                echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc

                # Refresh basically
                source .bashrc

                conda update conda


                python 3 anaconda install bash script



                # Go to home directory
                cd ~

                # You can change what anaconda version you want at
                # https://repo.continuum.io/archive/
                wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
                bash Anaconda3-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
                rm Anaconda3-4.2.0-Linux-x86_64.sh
                echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc

                # Refresh basically
                source .bashrc

                conda update conda


                Source: https://medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a






                share|improve this answer























                • This actually answers the question and should be the accepted answer
                  – Monica Heddneck
                  May 17 at 22:06















                up vote
                8
                down vote













                If you are trying to it entirely in command line you use a bash script
                python 2 anaconda install bash script:



                # Go to home directory
                cd ~

                # You can change what anaconda version you want at
                # https://repo.continuum.io/archive/
                wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
                bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
                rm Anaconda2-4.2.0-Linux-x86_64.sh
                echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc

                # Refresh basically
                source .bashrc

                conda update conda


                python 3 anaconda install bash script



                # Go to home directory
                cd ~

                # You can change what anaconda version you want at
                # https://repo.continuum.io/archive/
                wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
                bash Anaconda3-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
                rm Anaconda3-4.2.0-Linux-x86_64.sh
                echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc

                # Refresh basically
                source .bashrc

                conda update conda


                Source: https://medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a






                share|improve this answer























                • This actually answers the question and should be the accepted answer
                  – Monica Heddneck
                  May 17 at 22:06













                up vote
                8
                down vote










                up vote
                8
                down vote









                If you are trying to it entirely in command line you use a bash script
                python 2 anaconda install bash script:



                # Go to home directory
                cd ~

                # You can change what anaconda version you want at
                # https://repo.continuum.io/archive/
                wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
                bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
                rm Anaconda2-4.2.0-Linux-x86_64.sh
                echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc

                # Refresh basically
                source .bashrc

                conda update conda


                python 3 anaconda install bash script



                # Go to home directory
                cd ~

                # You can change what anaconda version you want at
                # https://repo.continuum.io/archive/
                wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
                bash Anaconda3-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
                rm Anaconda3-4.2.0-Linux-x86_64.sh
                echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc

                # Refresh basically
                source .bashrc

                conda update conda


                Source: https://medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a






                share|improve this answer














                If you are trying to it entirely in command line you use a bash script
                python 2 anaconda install bash script:



                # Go to home directory
                cd ~

                # You can change what anaconda version you want at
                # https://repo.continuum.io/archive/
                wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
                bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
                rm Anaconda2-4.2.0-Linux-x86_64.sh
                echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc

                # Refresh basically
                source .bashrc

                conda update conda


                python 3 anaconda install bash script



                # Go to home directory
                cd ~

                # You can change what anaconda version you want at
                # https://repo.continuum.io/archive/
                wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
                bash Anaconda3-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
                rm Anaconda3-4.2.0-Linux-x86_64.sh
                echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc

                # Refresh basically
                source .bashrc

                conda update conda


                Source: https://medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Oct 10 '17 at 21:43

























                answered Jan 11 '17 at 7:37









                Michael James Kali Galarnyk

                17914




                17914












                • This actually answers the question and should be the accepted answer
                  – Monica Heddneck
                  May 17 at 22:06


















                • This actually answers the question and should be the accepted answer
                  – Monica Heddneck
                  May 17 at 22:06
















                This actually answers the question and should be the accepted answer
                – Monica Heddneck
                May 17 at 22:06




                This actually answers the question and should be the accepted answer
                – Monica Heddneck
                May 17 at 22:06










                up vote
                4
                down vote













                Watch this video for complete installation



                Download Anaconda from continuum here



                To install Python 3.6 version



                sudo bash Anaconda3-4.3.0-Linux-x86_64.sh 


                For Python 2.7 version



                 sudo bash Anaconda2-4.3.0-Linux-x86_64.sh


                Run Navigator



                anaconda-navigator


                Run Spyder IDE



                spyder


                Run Jupyter Notebook



                jupyter-notebook





                share|improve this answer



























                  up vote
                  4
                  down vote













                  Watch this video for complete installation



                  Download Anaconda from continuum here



                  To install Python 3.6 version



                  sudo bash Anaconda3-4.3.0-Linux-x86_64.sh 


                  For Python 2.7 version



                   sudo bash Anaconda2-4.3.0-Linux-x86_64.sh


                  Run Navigator



                  anaconda-navigator


                  Run Spyder IDE



                  spyder


                  Run Jupyter Notebook



                  jupyter-notebook





                  share|improve this answer

























                    up vote
                    4
                    down vote










                    up vote
                    4
                    down vote









                    Watch this video for complete installation



                    Download Anaconda from continuum here



                    To install Python 3.6 version



                    sudo bash Anaconda3-4.3.0-Linux-x86_64.sh 


                    For Python 2.7 version



                     sudo bash Anaconda2-4.3.0-Linux-x86_64.sh


                    Run Navigator



                    anaconda-navigator


                    Run Spyder IDE



                    spyder


                    Run Jupyter Notebook



                    jupyter-notebook





                    share|improve this answer














                    Watch this video for complete installation



                    Download Anaconda from continuum here



                    To install Python 3.6 version



                    sudo bash Anaconda3-4.3.0-Linux-x86_64.sh 


                    For Python 2.7 version



                     sudo bash Anaconda2-4.3.0-Linux-x86_64.sh


                    Run Navigator



                    anaconda-navigator


                    Run Spyder IDE



                    spyder


                    Run Jupyter Notebook



                    jupyter-notebook






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Feb 26 '17 at 18:34









                    Zanna

                    49.2k13123234




                    49.2k13123234










                    answered Feb 26 '17 at 17:20









                    user659168

                    411




                    411






















                        up vote
                        0
                        down vote













                        You can use Pyenv to install Anaconda, and then easily switch back and forth between your system Python and your Anaconda Python:




                        1. Install Pyenv


                        2. pyenv install anaconda3-5.3.0 (pynev install -l to see what versions of anaconda are available)






                        share|improve this answer

























                          up vote
                          0
                          down vote













                          You can use Pyenv to install Anaconda, and then easily switch back and forth between your system Python and your Anaconda Python:




                          1. Install Pyenv


                          2. pyenv install anaconda3-5.3.0 (pynev install -l to see what versions of anaconda are available)






                          share|improve this answer























                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            You can use Pyenv to install Anaconda, and then easily switch back and forth between your system Python and your Anaconda Python:




                            1. Install Pyenv


                            2. pyenv install anaconda3-5.3.0 (pynev install -l to see what versions of anaconda are available)






                            share|improve this answer












                            You can use Pyenv to install Anaconda, and then easily switch back and forth between your system Python and your Anaconda Python:




                            1. Install Pyenv


                            2. pyenv install anaconda3-5.3.0 (pynev install -l to see what versions of anaconda are available)







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Oct 24 at 1:21









                            yndolok

                            1011




                            1011






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.





                                Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                Please pay close attention to the following guidance:


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f505919%2fhow-to-install-anaconda-on-ubuntu%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

                                How to change which sound is reproduced for terminal bell?

                                Can I use Tabulator js library in my java Spring + Thymeleaf project?