Skip to content

Instantly share code, notes, and snippets.

@yiidtw
Created January 13, 2019 10:47
Show Gist options
  • Save yiidtw/5a96bd6c359b44b6be340a9aa23b02d3 to your computer and use it in GitHub Desktop.
Save yiidtw/5a96bd6c359b44b6be340a9aa23b02d3 to your computer and use it in GitHub Desktop.
setup up python3 virtualenv on centos7
sudo yum install -y epel-release
sudo yum install -y python-pip python-virtualenv python-virtualenvwrapper
cat <<EOF >>$HOME/.bashrc
if [ -f /usr/bin/virtualenvwrapper.sh ]; then
export WORKON_HOME=~/.virtualenvs
source /usr/bin/virtualenvwrapper.sh
fi
EOF
source $HOME/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment