diff --git a/scripts/install_centos.sh b/scripts/install_centos.sh index ac6ea949c..69f789309 100755 --- a/scripts/install_centos.sh +++ b/scripts/install_centos.sh @@ -29,8 +29,11 @@ yum -y lsof net-tools.x86_64 yum -y install ncurses-devel mysql-dev locate yum -y install epel-release python-devel -wget https://bootstrap.pypa.io/get-pip.py -python get-pip.py +if [ ! -f '/usr/bin/pip' ];then + wget https://bootstrap.pypa.io/get-pip.py + python get-pip.py + pip install --upgrade pip +fi + -pip install --upgrade pip pip install -r /www/server/mdserver-web/requirements.txt \ No newline at end of file