pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

"requests" is not accessed Pylance. I am getting this problem when trying to import requests,it is already installed in the system but the word get coloured to green instead of white and when l click on it that is the info it shows

Open SreyaChivukula opened this issue 1 year ago • 2 comments

SreyaChivukula avatar May 08 '24 06:05 SreyaChivukula

can you include some screenshot for us to understand the issue?

heejaechang avatar May 08 '24 16:05 heejaechang

Thanks for reporting, to help us investigate, Can you please provide a log as described under "Filing an issue" in the troubleshooting guide?

KacieKK avatar May 08 '24 17:05 KacieKK

This issue has been closed automatically because it needs more information and has not had recent activity. If the issue still persists, please reopen with the information requested. Thanks.

github-actions[bot] avatar Jun 08 '24 11:06 github-actions[bot]

Image

➜  ~ pip install requests

Requirement already satisfied: requests in /opt/homebrew/lib/python3.13/site-packages (2.32.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/homebrew/lib/python3.13/site-packages (from requests) (3.4.1)
Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/lib/python3.13/site-packages (from requests) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/homebrew/lib/python3.13/site-packages (from requests) (2.4.0)
Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.13/site-packages (from requests) (2025.1.31)

Drjacky avatar Apr 27 '25 19:04 Drjacky

@Drjacky we'd need to see your output log as described here: https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue

The most common cause of your problem is you need to pick the python interpreter in VS Code. The interpreter you're using in your terminal may not match the default being used by VS code.

This spot here:

Image

rchiodo avatar Apr 28 '25 16:04 rchiodo