自动更新所有已安装的python软件包

不需要grep或xargs
.

0

linux命令:pip freeze --local | awk -F= '{print "pip install -U "$1}' | sh sh | "$1}' -U install "pip '{print -F= awk | --local freeze pip pip freeze --local | awk -F= '{print "pip install -U "$1}' | shrootopen.com
linux命令:pip freeze --local | awk -F= '{print "pip install -U "$1}' | sh sh | "$1}' -U install "pip '{print -F= awk | --local freeze pip pip freeze --local | awk -F= '{print "pip install -U "$1}' | shrootopen.com
hufv 2018-05-31 04:57:48
输出
替代方案1 自动更新所有已安装的python软件包

有两种不同的方式,我会这样做。发布该命令或者您更喜欢xargs:pip freeze --local | awk -F“=”'{$ 1}'| xargs pip install -U#但考虑到上面的替换xargs,这是一个有争议的问题.

linux命令:pip freeze --local | awk -F "=" '{print "pip install -U "$1}' | sh sh | "$1}' -U install "pip '{print "=" -F awk | --local freeze pip pip freeze --local | awk -F "=" '{print "pip install -U "$1}' | shrootopen.com
linux命令:pip freeze --local | awk -F "=" '{print "pip install -U "$1}' | sh sh | "$1}' -U install "pip '{print "=" -F awk | --local freeze pip pip freeze --local | awk -F "=" '{print "pip install -U "$1}' | shrootopen.com
.
输出
替代方案2 自动更新所有已安装的python软件包

自动更新所有已安装的python软件包.

linux命令:for i in `pip list -o --format legacy|awk '{print $1}'` ; do pip install --upgrade $i; done done $i; --upgrade install pip do ; $1}'` '{print legacy|awk --format -o list `pip in i for for i in `pip list -o --format legacy|awk '{print $1}'` ; do pip install --upgrade $i; donerootopen.com
linux命令:for i in `pip list -o --format legacy|awk '{print $1}'` ; do pip install --upgrade $i; done done $i; --upgrade install pip do ; $1}'` '{print legacy|awk --format -o list `pip in i for for i in `pip list -o --format legacy|awk '{print $1}'` ; do pip install --upgrade $i; donerootopen.com
.
输出
替代方案3 自动更新所有已安装的python软件包

自动更新所有已安装的python软件包.

linux命令:pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U -U install pip -n1 xargs | 1 -f = -d cut | '^\-e' -v grep | --local freeze pip pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -Urootopen.com
linux命令:pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U -U install pip -n1 xargs | 1 -f = -d cut | '^\-e' -v grep | --local freeze pip pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -Urootopen.com
.
输出

评论

相关推荐

对于前缀路径中的后续命令:PYTHONPATH = $ PWD / lib / python * / site-packages ./bin/pip --version

linux命令:pip install --prefix $PWD -I pip pip -I $PWD --prefix install pip pip install --prefix $PWD -I piprootopen.com
linux命令:pip install --prefix $PWD -I pip pip -I $PWD --prefix install pip pip install --prefix $PWD -I piprootopen.com
.

通过pip更新所有过时的Python包。

linux命令:pip list --outdated --format=freeze | grep -o "[[:alnum:][:punct:]]\{,\}==" | sed 's#==$##g' | xargs -I '{}' pip install {} --upgrade --upgrade {} install pip '{}' -I xargs | 's#==$##g' sed | "[[:alnum:][:punct:]]\{,\}==" -o grep | --format=freeze --outdated list pip pip list --outdated --format=freeze | grep -o "[[:alnum:][:punct:]]\{,\}==" | sed 's#==$##g' | xargs -I '{}' pip install {} --upgraderootopen.com
linux命令:pip list --outdated --format=freeze | grep -o "[[:alnum:][:punct:]]\{,\}==" | sed 's#==$##g' | xargs -I '{}' pip install {} --upgrade --upgrade {} install pip '{}' -I xargs | 's#==$##g' sed | "[[:alnum:][:punct:]]\{,\}==" -o grep | --format=freeze --outdated list pip pip list --outdated --format=freeze | grep -o "[[:alnum:][:punct:]]\{,\}==" | sed 's#==$##g' | xargs -I '{}' pip install {} --upgraderootopen.com
.

pip安装包定义一个代理

linux命令:pip --proxy http://proxy:8080 install Jinja2==2.9.6 Jinja2==2.9.6 install http://proxy:8080 --proxy pip pip --proxy http://proxy:8080 install Jinja2==2.9.6rootopen.com
linux命令:pip --proxy http://proxy:8080 install Jinja2==2.9.6 Jinja2==2.9.6 install http://proxy:8080 --proxy pip pip --proxy http://proxy:8080 install Jinja2==2.9.6rootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令