Last active
April 2, 2020 22:33
-
-
Save benfasoli/a7193b2bdd59e1b930efcb7facd6d12e to your computer and use it in GitHub Desktop.
Configure python within linux user scope
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# curl -sL https://gist.github.com/benfasoli/a7193b2bdd59e1b930efcb7facd6d12e/raw/ | bash | |
set -e | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda3.sh | |
bash miniconda3.sh -b -p $HOME/.miniconda3 | |
rm miniconda3.sh | |
cp $HOME/.bashrc $HOME/.bashrc-miniconda-backup | |
echo ' | |
# Preempt environment configuration with user scoped installations | |
export CPATH=$HOME/.miniconda3/incude:$CPATH | |
export PATH=$HOME/.miniconda3/bin:$PATH | |
export LD_LIBRARY_PATH=$HOME/.miniconda3/lib:$LD_LIBRARY_PATH | |
export PKG_CONFIG_PATH=$HOME/.miniconda3/lib/pkgconfig:$PKG_CONFIG_PATH | |
export PROJ_LIB=$HOME/.miniconda3/share/proj | |
' >> $HOME/.bashrc | |
unset BASHRC_LOADED && source $HOME/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment