Skip to content

Commit

Permalink
pip改为Py3内置
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Sep 23, 2018
1 parent e4df4fa commit bc9d6bb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions multi-v2ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,15 @@ checkSys() {
installDependent(){
if [[ ${OS} == 'CentOS' ]];then
yum install epel-release curl wget unzip git ntp ntpdate socat crontabs lsof -y
yum install python34 -y
[[ -z $(rpm -qa|grep python3) ]] && yum install python34 -y
else
apt-get update
apt-get install curl unzip git ntp wget ntpdate python3 socat cron lsof -y
apt-get install curl unzip git ntp wget ntpdate socat cron lsof -y
[[ -z $(dpkg -l|grep python3) ]] && apt-get install python3 -y
fi

# 安装最新版pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
rm -f get-pip.py

# 安装 pip依赖
pip install pyopenssl
python3 -m pip install pyopenssl
}

#设置定时升级任务
Expand Down

0 comments on commit bc9d6bb

Please sign in to comment.