2

I'm getting the below error message when attempting to install 'request' Python package running command pip install request:

ERROR: Could not find a version that satisfies the requirement request (from versions: none) ERROR: No matching distribution found for request

Troubleshooting steps taken:

  • upgraded pip from 20.0.2 to pip 20.1.1 following this Stack Overflow
  • ran pip3 install request; received same error message
  • attempted to install version 0.0.14 of setupfiles from this Stack Overflow question; I received similar error message

Additional information:

It also looks like the package doesn't exist on the PyPI server anymore. If you Google search "pip install request", you should be able to see the request PyPI project is indexed and if you click it, you'll get a Error code 404.

Is there anything I'm missing? Or is there any other way to install the 'request' package? Is it available somewhere else?

Edit (for use-case context and examples): I'm trying to install a macOS virtual machine via Linux Manjaro. I'm following this Passthrough Post article. Under the "Basic Setup" section of the article, Python packages 'click' and 'request' are prerequisites dependencies. So the command would be pip install click request. If you see this video guide starting at 5:28 mark, he was able to run that command successfully and install the 'request' package.

Also, here is a screenshot example of it being imported from Flask: Request package imported from Flask example.jpeg

10
  • 4
    pip install requests Commented Jul 16, 2020 at 8:13
  • @OlvinRoght @vvk24 Thanks, but that's not what I'm trying to install. To clarify for my use-case, I'm trying to install a macOS virtual machine via Linux Manjaro, following this guide passthroughpo.st/… Under the "Basic Setup" section of the guide, Python packages 'click' and 'request' are prerequisites dependencies. So the command would be pip install click request. If you see this video guide starting at 5:28 mark, he was able to install the requestpackage: youtu.be/HipxJJhDPHA?t=328 Commented Jul 17, 2020 at 8:15
  • 2
    1. Looks like a typo in the guide that you're trying to follow. No request on PyPI, but requests on PyPI. PyPI is the repository pip installs from by default. I checked the git repository linked in the guide and there is only mention of import requests not request. 2. In the screenshot it reads from flask import request so you need to install flask. 3. The bit in the video is inconclusive, doesn't make any sense to me. Commented Jul 17, 2020 at 8:59
  • After more research, it looks like there might have been a request project on PyPI at some point, indeed. Might have been associated with this git repository (deleted as well). Anyway, I am pretty sure the code you want to run needs requests and not request, so it doesn't matter that this other project existed at some point but is now missing. Commented Jul 17, 2020 at 9:03
  • I voted to reopen. It is a bit more complicated than a typo. Or at least the typo is not on the side of the one asking the question here. Commented Jul 17, 2020 at 9:10

2 Answers 2

3

I think what are you trying to install is the "requests" package

Sign up to request clarification or add additional context in comments.

1 Comment

Hi BlueBeret, thanks for your comment. But that's not what I'm trying to install. Please see updated post with context around my use-case with some examples.
1

From what I understood...

There is a typo in the article. Where it says to install request it should actually say requests (plural, with an s at the end). The author of the screencast seems to make the same mistake, and I can only assume it is of no consequence to them, because they probably somehow had requests already installed beforehand in their Python environment.

This can be confirmed by reading the actual code in the git repository linked in the article. In particular the following lines:

import click import requests 

Update:

It seems like (at some point in time at least) the request (without the s at the end) package contained some malware:

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.