赞
踩
yum源中提供了python3的安装包,但未必是最新的python版本。例如当前我的环境中,yum源中的python3为3.6版本。
python36.x86_64 : Interpreter of the Python programming language
yum install -y python36
ln -s python3.6 python3
注意安装与以上python版本相同的setuptools
yum install -y python36-setuptools
easy_install pip
安装之后,pip3位于/usr/local/bin目录下
# 在/usr/local/bin目录下执行
./pip3 install django
转至:https://developer.aliyun.com/article/640213
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。