【问题标题】:Installing pip in Raspberry pi3在树莓派 pi3 中安装 pip
【发布时间】:2022-01-24 03:57:03
【问题描述】:

对不起,我是新手,当我尝试使用以下命令安装 pip 时

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

我收到以下错误

ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.6. Please use https://bootstrap.pypa.io/pip/2.7/get-pip.py instead.

请帮帮我

【问题讨论】:

    标签: python-3.x pip python-2.x


    【解决方案1】:

    你有两个选择,要么使用python3

    sudo apt install python3 -y
    wget https://bootstrap.pypa.io/get-pip.py
    sudo python3 get-pip.py
    

    或者用python2安装:

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

    但如果你只想安装pip,你可以这样做:

    sudo apt install python3-pip -y
    

    或

    sudo apt install python-pip -y
    

    【讨论】:

    • 非常感谢,它成功了
    • @ShAn 我很高兴它成功了。请考虑将其标记为已解决。答案旁边有一个标记按钮。
    猜你喜欢
    • 1970-01-01
    • 2021-06-22
    • 1970-01-01
    • 2020-03-29
    • 2016-12-11
    • 2020-04-15
    • 2022-12-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多