pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U另外一種方式也是可以的...
pip install -U $(pip3 freeze |awk '{split($0,a,"=="); print a[1]}') pip3 install -U $(pip3 freeze |awk '{split($0,a,"=="); print a[1]}')#