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

Unable to find "/Library/Python/3.8/include/pyconfig.h" #5582

Closed
door5719 opened this issue Feb 24, 2021 · 5 comments
Closed

Unable to find "/Library/Python/3.8/include/pyconfig.h" #5582

door5719 opened this issue Feb 24, 2021 · 5 comments

Comments

@door5719
Copy link

mac11.01 python3.8.2(install with Command_Line_Tools_for_Xcode_12.3.dmg)
when i use : pyinstaller -F player.py
the error like
.....
6067 INFO: Loading module hook 'hook-sysconfig.py' from '/Users/ddllmac11/Library/Python/3.8/lib/python/site-packages/PyInstaller/hooks'...
Unable to find "/Library/Python/3.8/include/pyconfig.h" when adding binary and data files.This would mean your Python installation doesn't
come with proper library files. This usually happens by missing development
package, or unsuitable build parameters of Python installation.

  • On Debian/Ubuntu, you would need to install Python development packages
    • apt-get install python3-dev
    • apt-get install python-dev
  • If you're building Python by yourself, please rebuild your Python with
    --enable-shared (or, --enable-framework on Darwin)

how to deal with it?

@bwoodsend
Copy link
Member

How did you install Python?

@door5719
Copy link
Author

How did you install Python?

I solve this proble by using brew install python 。Thanks

@sebkraemer
Copy link

sebkraemer commented Mar 9, 2021

It's still an issue for me. I tried to satisfy pyinstaller with a brewed python installation, but it still fails the same way, probably because Apples dev tools ship python 3.8 while brew now installs 3.9.

Could we reopen the issue?
On a second though, this is probably not something to be fixed in pyinstaller. I guess I'll have to reconfigure the system to just use the brewed python installation and ignore the dev tools completely. Apple sure doesn't make it easy.

@bwoodsend
Copy link
Member

#5218 should fix this anyway.

@sebkraemer
Copy link

Just a side note for someone else coming here with the same issue. Pyinstaller run worked fine when running from inside a virtualenv, not sure why.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants