shell 安装python模块

!/bin/bash

安装python第三方库

which pip
libs=(netaddr)

pip install --upgrade pip -i https://pypi.douban.com/simple/

  for i in ${libs[@]};
      do
	      echo " ---------- 正在安装 ---------------> $i "
	      sudo /usr/local/bin/pip install $i -i https://pypi.douban.com/simple/;
      done
posted @ 2020-11-30 16:27  阿浪阿浪  阅读(827)  评论(0编辑  收藏  举报