1

I am using the command line to try to install pip. I am using the command line to install the file. I am using the command "python C:\Users\Lucas\Desktop\get-pip.py install" in the C:\Python27 directory. Below is the error message i receive in the error log:

Exception information:
Traceback (most recent call last):
  File "c:\users\lucas\appdata\local\temp\unpacker-hpeuf5-scratchdir\pip\basecommand.py", line 134, in main
    status = self.run(options, args)
  File "c:\users\lucas\appdata\local\temp\unpacker-hpeuf5-scratchdir\pip\commands\install.py", line 236, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "c:\users\lucas\appdata\local\temp\unpacker-hpeuf5-scratchdir\pip\req.py", line 1077, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "c:\users\lucas\appdata\local\temp\unpacker-hpeuf5-scratchdir\pip\index.py", line 265, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for install
BenMorel
  • 34,448
  • 50
  • 182
  • 322
user2905312
  • 39
  • 2
  • 3

6 Answers6

2

Try:

cd C:\Users\Lucas\Desktop
python get-pip.py
Steve Barnes
  • 27,618
  • 6
  • 63
  • 73
0

Do not pass any parameters:

python get-pip.py

or

/path/to/version/python get-pip.py
jpwagner
  • 553
  • 2
  • 8
0

Try this out

sudo python get-pip.py
kero
  • 10,647
  • 5
  • 41
  • 51
Dap
  • 2,309
  • 5
  • 32
  • 44
0

Try doing all these activities using python3 and pip3. That worked for me

alexmac05
  • 56
  • 4
0

I have solved the issue by following the steps.

  1. curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  2. python get-pip.py
  3. pip install --upgrade pip

If you face any other issue you can check the article. How to Install pip

0

The install command is unnecassary, as others pointed on, switch to get-pip.py directory and run command python get-pip.py would be enough.

The error indicates that the pip tries to install something with the install command and it does not find the requirement of package name to be installed. This install or upgrade you can do once pip gets installed.

The command python \path\to\getpip\get-pip.py will take care of installing pip with python. Once this step is completed you could try install or upgrade command like pip install <pkgname>

cslrnr
  • 694
  • 1
  • 8
  • 24