Score:2

conda cammand not found after Anaconda install

ca flag

I just installed Anaconda as instructed from the homepage.

  • Downloaded installer
  • checked sum:
    $ shasum -a 256 ~/Downloads/Anaconda3-2022.10-Linux-x86_64.sh 
    e7ecbccbc197ebd7e1f211c59df2e37bc6959d081f2235d387e08c9026666acd  /home/akil/Downloads/Anaconda3-2022.10-Linux-x86_64.sh
    
  • install Anaconda
    bash ~/Downloads/Anaconda3-2022.10-Linux-x86_64.sh
    
  • Accepted all default settings, until final welcome message.
...
Thank you for installing Anaconda3!

===========================================================================

Working with Python and Jupyter is a breeze in DataSpell. It is an IDE
designed for exploratory data analysis and ML. Get better data insights
with DataSpell.

DataSpell for Anaconda is available at: https://www.anaconda.com/dataspell

How ever, I cannot use conda command.

$ conda init
conda: command not found

Ubuntu version:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

EDIT

output of ./conda init bash in ~/anaconda3:

$  cd ~/anaconda3/bin/
$ ./conda init bash

~/anaconda3/bin$ ./conda init bash
no change     /home/akil/anaconda3/condabin/conda
no change     /home/akil/anaconda3/bin/conda
no change     /home/akil/anaconda3/bin/conda-env
no change     /home/akil/anaconda3/bin/activate
no change     /home/akil/anaconda3/bin/deactivate
no change     /home/akil/anaconda3/etc/profile.d/conda.sh
no change     /home/akil/anaconda3/etc/fish/conf.d/conda.fish
no change     /home/akil/anaconda3/shell/condabin/Conda.psm1
no change     /home/akil/anaconda3/shell/condabin/conda-hook.ps1
no change     /home/akil/anaconda3/lib/python3.9/site-packages/xontrib/conda.xsh
no change     /home/akil/anaconda3/etc/profile.d/conda.csh
no change     /home/akil/.bashrc
No action taken.
us flag
Which version of Ubuntu are you using?
us flag
Try `./anaconda3/bin/conda init bash`, and then logout/login
super_ask avatar
ca flag
@ArchismanPanigrahi `22.04` as shown in question edit.
Score:0
us flag

I faced the same issue yesterday, while installing conda in a cluster.

You have to initialize Conda to use bash. Opena terminal and run

cd anaconda3/bin/
./conda init bash

Now logout/login or reboot for the new configurations to load.

super_ask avatar
ca flag
not available even after system reboot.
super_ask avatar
ca flag
changed to the dir and issued the command, `No action taken` as in the edit. This is after system reboot.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.