-
I installed conda using
sudo dnf install conda -
I then ran
conda initand got the output:
modified /usr/condabin/conda
modified /usr/bin/conda
modified /usr/bin/conda-env
modified /usr/bin/activate
modified /usr/bin/deactivate
modified /usr/etc/profile.d/conda.sh
needs sudo /usr/etc/fish/conf.d/conda.fish
modified /usr/shell/condabin/Conda.psm1
modified /usr/shell/condabin/conda-hook.ps1
needs sudo /usr/lib/python3.14/site-packages/xontrib/conda.xsh
modified /usr/etc/profile.d/conda.csh
modified /home/bradbell/.bashrc -
I then created a conda environment using conda
create –name temp -
I then tried
conda activate tempand gotCondaError: Run ‘conda init’ before ‘conda activate’
-
I then ran
conda initand this time got get a request from sudo to enter my password.
The problem was that I was running in the same shell as the one that changed my .bashrc file.
Opening a new window or running source ~/.bashrc solved the problem