Skip to content

Instantly share code, notes, and snippets.

@victorono
Last active March 12, 2017 01:57
Show Gist options
  • Save victorono/219bfde7dbd9a7592f2aacbac05a3ddb to your computer and use it in GitHub Desktop.
Save victorono/219bfde7dbd9a7592f2aacbac05a3ddb to your computer and use it in GitHub Desktop.
Installing Python 3 with virtualenv on CentOS 7

Installing Python 3 with virtualenv on CentOS 7

## Enable the EPEL repository with: yum install epel-release

## Install python34 and python-pip packages with: yum install python34 python34-devel python-pip

## Update pip and install virtualenv with: pip install -U pip pip install virtualenv

## Create and activate a new python3 virtualenv with: virtualenv -p python3 <env_name>

## Activate the environment cd <env_name> && source bin/activate

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