close

[Solved] CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’ in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’ Error Occurs?

How To Solve CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’ Error ?

  1. How To Solve CommandNotFoundError: Your shell has not been properly configured to use 'conda activate' Error ?

    To Solve CommandNotFoundError: Your shell has not been properly configured to use 'conda activate' Error Functions are not exported by default to be made available in subshells. I'd recommend you do: source ~/anaconda3/etc/profile.d/conda.sh
    conda activate my_env

Solution 1

As of conda 4.4, the command

conda activate <envname>

is the same on all platforms. The procedure to add conda to the PATH environment variable for non-Windows platforms (on Windows you should use the Anaconda Prompt), as well as the change in environment activation procedure, is detailed in the release notes for conda 4.4.0.


For conda versions older than 4.4, command is either

source activate <envname>

on Linux and macOS or

activate <envname>

on Windows. You need to remove the conda.

Solution 2

Functions are not exported by default to be made available in subshells. I’d recommend you do:

source ~/anaconda3/etc/profile.d/conda.sh
conda activate my_env

In the commands above, replace ~/anaconda3/ with the path to your miniconda / anaconda installation.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment