curl and run python script

后端 未结 2 496
北海茫月
北海茫月 2021-01-12 05:21

What is a shorter way to do that:

wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

?
I tried this:

sud         


        
相关标签:
2条回答
  • 2021-01-12 06:13

    curl https://bootstrap.pypa.io/get-pip.py | sudo python -

    curl will output given URL to stdout

    python - indicate, that source will be taken from stdin.

    0 讨论(0)
  • 2021-01-12 06:23

    Another way to install pip:

    sudo python -m ensurepip

    0 讨论(0)
提交回复
热议问题