Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package import errors when doing pip install -e #222

Open
ketch opened this issue Jul 21, 2023 · 0 comments
Open

Package import errors when doing pip install -e #222

ketch opened this issue Jul 21, 2023 · 0 comments

Comments

@ketch
Copy link
Member

ketch commented Jul 21, 2023

On a couple of Macs recently I've encountered the problem that the editable install command (pip install -e .) leads to setuptools failing to import packages that are installed (and yes, I've checked that they're installed for the correct Python installation on the machine). I get something like this:

Screen Shot 2023-07-21 at 10 23 12 PM

I finally found a workaround in a comment here:

https://stackoverflow.com/questions/74876384/setuptools-doesnt-find-a-package-that-is-installed

Specifically, this command line works:

pip3 install --no-use-pep517 -e .

I don't yet know why; I guess that it has something to do with https://peps.python.org/pep-0517/

I'm posting this here in case others face the same problem, or in case somebody knows what the real issue is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant