Skip to content

Instantly share code, notes, and snippets.

@soyfrien
Created October 17, 2018 21:53
Show Gist options
  • Select an option

  • Save soyfrien/00d9b2dc46aeec7f4ca9576ebbd04b57 to your computer and use it in GitHub Desktop.

Select an option

Save soyfrien/00d9b2dc46aeec7f4ca9576ebbd04b57 to your computer and use it in GitHub Desktop.
Set this up if you need Python 3.7
# added by Anaconda3 5.3.0 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/opt/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/opt/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/opt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
@soyfrien

Copy link
Copy Markdown
Author

Append the above to your ~/ .bashrc file. Example using wget:
wget -O - https://gist.githubusercontent.com/ppdac/00d9b2dc46aeec7f4ca9576ebbd04b57/raw/b669e6429d18d38b9a0515edff0e58d196d8ce96/Setup%2520Anaconda.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment