“E: Unable to locate package python-pip” on Ubuntu 18.04

前端 未结 4 1661
臣服心动
臣服心动 2020-12-16 09:14

I am trying to install virtualenv on Ubuntu.

First it said command \'pip\' not found, so I typed

sudo apt install python-pip
         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-16 10:03

    ls /bin/python*
    

    Identify the highest version of python listed. If the highest version is something like python2.7 then install python2-pip If its something like python3.8 then install python3-pip

    Example for python3.8:

    sudo apt-get install python3-pip
    

提交回复
热议问题