. Advertisement .
..3..
. Advertisement .
..4..
Python is a well-known and widely-used programming language in the world. While working with python, we use a virtual environment to maintain our projects or applications. However, there are many times you might run into an error “conda: command not found”.
This post is going to show you how to fix this error in Python.
How Does The error “conda : command not found” occur?
If you are familiar with Python program, you must know the word “conda”. It is open-source and was created for installing and managing multiple versions of Python packages. The error “conda: command not found” is raised when the system cannot find the conda file in the case of the conda environment.
How To Solve The Problem?
Here are some practical solutions for the error you are dealing with.
Solution 1
In order to solve this error, the system must recognize the conda file in the. The first thing you can do is add the conda file to the zsh shell PATH environment variable:
"export PATH="/anaconda3/bin":$PATH"
Then check it is added or not by this command:
conda –version
Solution 2
In the terminal, type “bash” and input:
"conda –version"
Solution 3
In the terminal, too, make sure that you are in .bash or .zshrc, then execute the code:
"export PATH="/anaconda3/bin":$PATH"
Solution 4
If you met this issue while upgrading MacOS Catalina, follow these steps.
Firstly, run this code
"curl -L https://repo.anaconda.com/pkgs/misc/cpr-exec/cpr-0.1.1-osx-64.exe -o cpr && chmod +x cpr ./cpr rehome ~/anaconda3"
Next,
"source ~/anaconda3/bin/activate"
And,
"conda init zsh"
Solution 5
Simply run this command.
"source ~/.bashrc"
Conclusion
We hope you enjoyed our post about resolving the error “conda: command not found”. If you’re experiencing this error, don’t worry! It’s a simple fix! We supply five useful solutions for you.
If you could not find the error being discussed in the post, don’t hesitate to get in touch with our team so that we can help you resolve the issue! Please leave your ideas and questions in the comments section below and know which approach worked best for you. Thank you!
Leave a comment