bndr / bndr/pipreqs

pipreqs says "WARNING: Import named "..." not found locally. Trying to resolve it at the PyPI server."

Open
#374 20 comments 4 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.