From de567726bbd215ccef748c3ce9addf0b2d79b03a Mon Sep 17 00:00:00 2001 From: qtwrk Date: Sun, 8 Mar 2020 00:07:29 +0100 Subject: [PATCH] pip3.6 link --- cyberpanel.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index a0ee2a78b..6c8d0a5e3 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -511,7 +511,9 @@ if [[ $SERVER_COUNTRY == "CN" ]] ; then mkdir /root/.config/pip cat << EOF > /root/.config/pip/pip.conf [global] -index-url = https://mirrors.aliyun.com/pypi/simple/ +index-url = https://pypi.tuna.tsinghua.edu.cn/simple +[install] +trusted-host=pypi.tuna.tsinghua.edu.cn EOF fi @@ -571,6 +573,7 @@ if [[ $SERVER_OS == "Ubuntu" ]] ; then if [[ $DEV == "ON" ]] ; then DEBIAN_FRONTEND=noninteractive apt install -y python3-pip check_return + ln -s /usr/bin/pip3 /usr/bin/pip3.6 DEBIAN_FRONTEND=noninteractive apt install -y build-essential libssl-dev libffi-dev python3-dev check_return DEBIAN_FRONTEND=noninteractive apt install -y python3-venv