Thursday, October 13, 2016

apt - Unable to locate package python-pip on live system


I am trying to install electrum on my Ubuntu live USB. Please forgive me because I am very new to this OS. I have also made a persistence 4GB space for installing software.


How can I get past this error? I tried using


sudo apt-get update

first, but I still get


E: Unable to locate package python-pip

when I try to install.



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 the
      list and click Install



    3. You can check weather the installation was successful or not by
      giving 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 this
      command:


      sudo python Downloads/distribute_setup.py


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


    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 successfully
      would look something like this:


      /usr/local/bin/easy_install


    7. The next thing to do is use easy_install to install pip. For that
      you’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




No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...