pipreqs says "WARNING: Import named "..." not found locally. Trying to resolve it at the PyPI server."
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
Hi all,
This is on MacOS Catalina. My project uses python 3.10, but I also have python 3.8 installed as well as python 2.7 as it is used by the system.
I run
pipreqs .
in the project directory and for every import it finds in the code issues
"WARNING: Import named "..." not found locally. Trying to resolve it at the PyPI server."
even though these are in fact installed for python 3.10.
How do I make it find them?
Thanks.
Contributor guide
Research direction
Start by reproducing `pipreqs .` in the reported project with Python 3.10, then check which Python executable and installed packages the command uses when resolving imports. Compare that environment with the one where the dependencies are installed. Done means installed imports no longer produce the warning, or the command clearly reports how to select the intended Python environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100