首页 > 代码库 > centos6安装python3.4和pip3

centos6安装python3.4和pip3

在安装了epel源的情况下,直接yum就可以安装python3.4

yum install python34 -y
python3 --version

没有自带pip3,从官网安装

wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
pip3 -V

写个简单的代码

#!/usr/bin/python3
# -*- coding: UTF-8 -*-

import sys
print(sys.version)

over

centos6安装python3.4和pip3