Conda initialization scripts in ~/.bash_profile
are not idempotent
#8703
Labels
locked
[bot] locked due to inactivity
stale::closed
[bot] closed after being marked as stale
stale
[bot] marked as stale due to inactivity
Current Behavior
The conda inialization scripts in
~/.bash_profile
are not idempotent.Steps to Reproduce
pipenv
or similar to ensure Python is installed and in the current path.PATH
variable updated in~/.bash_profile
file to ensure the above python environment is in front.~/.bash_profile
which python
and this will point to a python environment fromconda
.which python
and this will point to a non-conda python environment.Note:
~/.bash_profile
having been sourced. Now, when the terminal within VSC is opened, it sources the~/.bash_profile
file again. I.e. the code in~/.bash_profile
is sourced twice, as a result of this the path is updated. However the conda initialization scripts don't update the path when executed again.Expected Behavior
~/.bash_profile
need to be idempotent.~/.bash_profile
file multiple times should produce the same results.Environment Information
`conda info`
`conda config --show-sources`
`conda list --show-channel-urls`
@msarahan /cc
The text was updated successfully, but these errors were encountered: