#!/bin/bash
#安装python第三方库
libs=(requests flask django selenium lxml numpy pandas wheel scrapy flask-sqlalchemy sqlalchemy pymongo)
pip3 install --upgrade pip
for i in ${libs[@]};
do
echo " ---------- 正在安装 ---------------> $i "
sudo pip3 install $i;
while [ $? -ne 0 ];
do
echo " ---------- 安装失败,重新安装 ---------------> $i "
sudo pip3 install $i;
done
done