什么是更短的方法:
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
Run Code Online (Sandbox Code Playgroud)
?
我试过这个:
sudo <(python <(curl https://bootstrap.pypa.io/get-pip.py))
Run Code Online (Sandbox Code Playgroud)
但它返回错误:'IOError:[Errno 32] Broken pipe'
这有效:python <(curl https://bootstrap.pypa.io/get-pip.py)
但需要sudo
Zad*_*org 10
curl https://bootstrap.pypa.io/get-pip.py | sudo python -
curl
将给定的URL输出到stdout
python -
表明,该来源将取自stdin.
归档时间: |
|
查看次数: |
4483 次 |
最近记录: |