Unable to locate package python-pip Ubuntu 20.04

前端 未结 6 1388
故里飘歌
故里飘歌 2020-12-11 02:05

I am trying to install mininet-wifi. After downloading it, I have been using the following command to install it:

    sudo util/install.sh -Wlnfv
         


        
6条回答
  •  伪装坚强ぢ
    2020-12-11 02:51

    Since Python 2 is past its end-of-life, few packages for Python2 are included in 20.04. You have to install pip for Python 2 manually:

    First, install Python 2:

    sudo apt install python2
    

    Then, follow https://pip.pypa.io/en/stable/installing/ , using python2:

    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    python2 get-pip.py
    

    You can run the second step with sudo. If you don't use sudo, you'll need to change PATH, as suggested by the installation message. Alternatively, and possibly better (since it doesn't change PATH), use

    python2 -m pip
    

    whenever you need pip2.

提交回复
热议问题