English
+370 5 205 5502 sales@monovm.com

"Conda command not found" error fixed!

We will look at a few different solutions for the "conda command not found" bug in this article, along with the explanation of conda. We will also get through the solution for all major operating systems.

15 Feb, 22 by Susith Nonis 2 min Read

List of content you will read in this article:

Conda is a package management system for multiple Operating Systems. It is installed automatically with Anaconda. However, if your terminal still can't find the conda command, you can follow this article to resolve this error. Let's get started!

Conda is a command-line utility as well as an open-source package management system, or a package manager, for Windows, Linux, and Mac. It can simply install, configure, and update packages, as well as their dependencies, on your machines. It can also swiftly swap between different environments. It was designed with Python in mind, although it can install and manage the software packages for any programming language.

Adding to the path variable

When Anaconda is installed in the system, it usually adds conda to the path variable. However, if you can't find conda in the path variable, you can attempt the following solution to fix the problem.

Linux

Run the following command to add conda in the path variable:

$ export PATH=/path/to/anaconda3/bin:$PATH

The above command will only persist for the current session. To execute the command with every session, run the following command:

$ echo 'export PATH=/path/to/anaconda3/bin:$PATH' >> ~/.bashrc

Windows

Search for 'Edit the system environment variables and click on 'Environment Variables..'

In the 'System Variables' section, click on 'Path' and then click 'Edit'. 

You need to add the Anaconda installation folder to the list of paths: 'C:\Users\username\Anaconda3\'.

Initialize conda

Run the following respective commands to initialize conda

Linux

$ ./anaconda3/bin/conda init

Mac OS

$ ./anaconda3/bin/conda init zsh

Windows

$ ./anaconda3/Scripts/conda.exe init

Zsh

$ ./anaconda3/bin/conda init zsh

Run as administrator 

In Windows, you can right-click on the Anaconda Command Prompt and choose 'Run an Administrator'. This is because recent Windows 10 releases do not presume you have administrator credentials to install or update.

We looked at a few different solutions for the "conda command not found" bug in this article, along with the explanation of conda. We saw how to fix this error by adding conda to the path variable, initializing it, or running it as an administrator. All major operating systems are supported by the solutions discussed in this article.

Susith Nonis

I'm fascinated by the IT world and how the 1's and 0's work. While I veture into the world of Technology I try to share what I know in the simplest way possible. Not a fan of coffee, a sweet addict and a self accredited 'master chef'.