question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need to initialize the .bashrc on home folder for conda

See original GitHub issue
(/data/conda/myenv) jovyan@a1-0:~$ cat .bashrc 

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/conda/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/opt/conda/etc/profile.d/conda.sh" ]; then
        . "/opt/conda/etc/profile.d/conda.sh"
    else
        export PATH="/opt/conda/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
abarorcommented, Jun 15, 2021

incorporate this for the conda support. Add this to the docker image

0reactions
stthoomcommented, Jun 24, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I activate a conda environment in my .bashrc?
sudo ln -s /home/<user>/miniconda3/etc/profile.d/conda.sh ... put this at the end of your .bashrc file to open .bashrc open terminal, go to home directory....
Read more >
Conda command not found, path is in .bashrc - Stack Overflow
The path in .bashrc has been appended with proper username. Part of .bashrc enter c __el_LAST_EXECUTED_COMMAND="${BASH_COMMAND}" printf "\033] ...
Read more >
Initializing and activating your conda environment
Conda is a command line software installation tool based on python. It will allow us to install and run various useful applications inside...
Read more >
conda 22.9.0 breaks bash command prompt #11885 - GitHub
I have upgraded from 4.14.0 to 22.9.0 and now my bash command prompt is broken. I used to see: (conda-env) hostname:/path/to/working/dir$ ...
Read more >
Introduction to Python and environments with miniconda ...
It is a minimal install of the anaconda python distribution. It installs in your home directory so you don't need administrator priviledges to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found