Ubuntu – sudo: conda: command not found

conda

I installed Conda using its 32 bits .sh file from here.

Here are the essential parts of the installation procedure that worked fine:

Do you approve the license terms? [yes|no]
[no] >>> yes

Miniconda3 will now be installed into this location:
/home/begueradj/miniconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/home/begueradj/miniconda3] >>> 
PREFIX=/home/begueradj/miniconda3
installing: python-3.4.2-0 ...
installing: conda-env-2.0.1-py34_0 ...
installing: openssl-1.0.1k-0 ...
installing: pycosat-0.6.1-py34_0 ...
installing: pyyaml-3.11-py34_0 ...
installing: readline-6.2-2 ...
installing: requests-2.5.1-py34_0 ...
installing: sqlite-3.8.4.1-0 ...
installing: system-5.8-1 ...
installing: tk-8.5.15-0 ...
installing: xz-5.0.5-0 ...
installing: yaml-0.1.4-0 ...
installing: zlib-1.2.8-0 ...
installing: conda-3.8.3-py34_0 ...
Python 3.4.2 :: Continuum Analytics, Inc.
creating default environment...
installation finished.
Do you wish the installer to prepend the Miniconda3 install location
to PATH in your /home/begueradj/.bashrc ? [yes|no]
[no] >>> yes

Prepending PATH=/home/begueradj/miniconda3/bin to PATH in /home/begueradj/.bashrc
A backup will be made to: /home/begueradj/.bashrc-miniconda3.bak


For this change to become active, you have to open a new terminal.

Thank you for installing Miniconda3!
begueradj@begueradj-HP-Compaq-6510b-KE130ET-ABF:~/Desktop$ 

When I type sudo conda install something, I get this error:

sudo: conda: command not found

How can I resolve this problem ?

Best Answer

Well, I'm not used to find answers to my question this quickly, but for this one I did:

I had only to remove the sudo before the conda command.

Explanation:

All conda commands must be run without super user privileges.

Hope it can help someone in the future.