Hi,
Following suggestions in an earlier monthly meeting, I decided to try to install miniconda3 to be able to play around
with some Python stuff.
I got the install OK, but default sets it up so whenever I open a terminal, the venv virtual environment is
activated. (The relevant stuff that does this is, I believe, in .bashrc).
What I'd like is to have two scripts in my PATH (i.e., ~/bin/conda-go and ~/bin/conda-stop ) so I can initiate
or stop the environment. Does that make sense?
If I open a terminal and "type" (well, paste)
__conda_setup="$('/home/john/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
then
eval "$__conda_setup"
I get things going and see the command prompt with prefix " (base) "
The command '
conda deactivate
returns to normal prompt.
However, putting these in scripts doesn't work. I suspect calling scripts is not getting right info to the virtual
environment.
Comments?
John Nash
To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org