Friday, January 18, 2019

Python3 on CentOS 7

  • yum -y install https://centos7.iuscommunity.org/ius-release.rpm
  • yum -y install python36u
  • yum -y install python36u-pip
  • yum -y install python36u-devel

 

Create python3 virtual environment:

  • python3.6 -m venv myWorkEnvironment
  • source myWorkEnvironment/bin/activate
 

Note: python3 is now available by default distros repository and no need to install iuscommunity. Its available directly "sudo yum install -y python3"