Skip to content

Instantly share code, notes, and snippets.

@Aricg
Last active September 11, 2019 12:45
Show Gist options
  • Save Aricg/ff0133543c30f98afeb551c3ff06226e to your computer and use it in GitHub Desktop.
Save Aricg/ff0133543c30f98afeb551c3ff06226e to your computer and use it in GitHub Desktop.
sudo yum -y install python36 python36-devel python36-pip python36-setuptools python36-virtualenv
sudo alternatives --list | grep -i python
sudo alternatives --install /usr/bin/python python /usr/bin/python3.6 2
sudo alternatives --install /usr/bin/python python /usr/bin/python2.7 1
#This wont work, becasue pip is not a symlink!
#sudo alternatives --install /usr/bin/pip pip /usr/bin/pip3.6 1
echo "Check python"
python -m pip --version
python --version
python -m venv ~/.venv
source ~/.venv/bin/activate
pip install --upgrade pip
pip install yq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment