test.py というファイルを単一実行ファイルにするため、pyinstaller test.py --onefileを実行したところ、下記のようなエラーになりました。
pipをupgradeして試したのですが、結果は変わりませんでした。
パッケージがインストールされていないというエラーですが、どうして良いものか分かりません。
何かヒントでもご教授いただければ、幸いです。
os:mac
python3.6
エラー内容
OSError: Python library not found: libpython3.6.dylib, Python, .Python, libpython3.6m.dylib
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)
試したこと。
①pipのアップグレード
②virtualenvで仮想環境を作って実行
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。