sudo apt-get install python-pip 失败

Two Methods:

  • You can install through Ubuntu Software Center.

    1. Open Ubuntu Software Center and search for easy_install

    2. Highlight alternative Python package installer (python-pip) from thelist and click Install

    3. You can check weather the installation was successful or not bygiving the command

      which pip

      you will see the path of installed application, for example

      /usr/local/bin/pip

  • Second method

    1. Open terminal by pressing CTRL+ALT+T and type the following:

      cd ~

      to navigate to your home directory.

    2. Then issue the below command:

      wget -P Downloads/ https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.py

    3. Next step is to run the downloaded script. To do this, issue thiscommand:

      sudo python Downloads/distribute_setup.py

    4. and type your user password when prompted (Please, note that youraccount needs to be a member of Administrators group in order toissuesudo).

    5. Hit Enter and let the script run.

    6. To ensure easy_install is installed, issue the command below:

      which easy_install

      The typical response in case the installation completed successfullywould look something like this:

      /usr/local/bin/easy_install

    7. The next thing to do is use easy_install to install pip. For thatyou’ll need to issue:

      sudo easy_install pip

    8. Enter your password if prompted to confirm command.

    9. Let the installer run and once the installation is completed type:

      which pip

      This command should typically respond with something like this:

      /usr/local/bin/pip



我用的第二种方法,开始不管用,捣鼓了半天,又重新来了一遍,可以了……生无可恋


http://askubuntu.com/questions/268539/unable-to-locate-package-python-pip


我用虚拟机安装的Ubuntu 用sudo apt-get install  突然又可以了……,单独的系统已经通过上述方法突然也可以了, 接着生无可恋中

(是不是因为我把每个error的链接都打开看看它们,害羞了?就好了?哈哈,或者是我打开后路通了,然后它就跟上来了?机智)

源好任性

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值