mirror of
https://github.com/Jrohy/python3-install.git
synced 2026-04-03 03:08:18 +00:00
修复python3.6无法安装pip
This commit is contained in:
@@ -177,8 +177,10 @@ webInstall(){
|
||||
pipInstall(){
|
||||
[[ $NO_PIP == 1 ]] && return
|
||||
PY3_VERSION=`python3 -V|tr -cd '[0-9.]'|cut -d. -f2`
|
||||
if [ $PY3_VERSION -gt 5 ];then
|
||||
if [[ $PY3_VERSION > 6 ]];then
|
||||
python3 <(curl -sL https://bootstrap.pypa.io/get-pip.py)
|
||||
elif [[ $PY3_VERSION == 6 ]];then
|
||||
python3 <(curl -sL https://bootstrap.pypa.io/pip/3.6/get-pip.py)
|
||||
else
|
||||
if [[ -z `command -v pip` ]];then
|
||||
if [[ ${PACKAGE_MANAGER} == 'apt-get' ]];then
|
||||
|
||||
Reference in New Issue
Block a user