質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Q&A

0回答

3294閲覧

PyInstallerでの.exe化[Python3.6.5]

T_www

総合スコア13

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

0グッド

0クリップ

投稿2018/04/27 14:38

編集2022/01/12 10:55

###実現したいこと
Python3のコードを.exe化
###問題
PyInstallerを使って.exe化しようと実行してみるとERRORがでる。
PyInstallerでの.exe化の途中にわーにんぐ連発。*.dllが見つからないとの事。
###お願い
どうにかしてくれる人はいませんか??
###OSの情報とか
OS:Windows10
Python version:3.6.5
###実行したコマンド
pyinstaller -F -w -n ファイル名.exe ファイル名(pass)
###エラーメッセージ(log)

C:\Users\ユーザー名\Python\Python3\なんか作るわ>pyinstaller -F -w -n ok.exe kansei.py 4098 INFO: PyInstaller: 3.3.1 4098 INFO: Python: 3.6.5 4098 INFO: Platform: Windows-10-10.0.16299-SP0 4144 INFO: wrote C:\Users\ユーザー名\Python\Python3\なんか作るわ\ok.exe.spec 4207 INFO: UPX is not available. 4238 INFO: Extending PYTHONPATH with paths ['C:\Users\ユーザー名\Python\Python3\なんか作るわ', 'C:\Users\ユーザー名\Python\Python3\なんか作るわ'] 4238 INFO: checking Analysis 4238 INFO: Building Analysis because out00-Analysis.toc is non existent 4238 INFO: Initializing module dependency graph... 4332 INFO: Initializing module graph hooks... 4426 INFO: Analyzing base_library.zip ... 13399 INFO: running Analysis out00-Analysis.toc 13462 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by c:\users\ユーザー名\appdata\local\programs\python\python36-32\python.exe 14834 WARNING: lib not found: api-ms-win-core-debug-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 14918 WARNING: lib not found: api-ms-win-core-processenvironment-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 14988 WARNING: lib not found: api-ms-win-core-processthreads-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15072 WARNING: lib not found: api-ms-win-core-profile-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15155 WARNING: lib not found: api-ms-win-core-datetime-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15233 WARNING: lib not found: api-ms-win-core-timezone-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15295 WARNING: lib not found: api-ms-win-core-localization-l1-2-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15374 WARNING: lib not found: api-ms-win-core-handle-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15452 WARNING: lib not found: api-ms-win-core-rtlsupport-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15530 WARNING: lib not found: api-ms-win-core-string-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15592 WARNING: lib not found: api-ms-win-core-file-l1-2-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15687 WARNING: lib not found: api-ms-win-core-file-l2-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15752 WARNING: lib not found: api-ms-win-core-file-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15830 WARNING: lib not found: api-ms-win-core-console-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15908 WARNING: lib not found: api-ms-win-core-util-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 15971 WARNING: lib not found: api-ms-win-core-namedpipe-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 16049 WARNING: lib not found: api-ms-win-core-memory-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 16121 WARNING: lib not found: api-ms-win-core-synch-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 16216 WARNING: lib not found: api-ms-win-core-heap-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 16288 WARNING: lib not found: api-ms-win-core-errorhandling-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 16382 WARNING: lib not found: api-ms-win-core-libraryloader-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 16453 WARNING: lib not found: api-ms-win-core-processthreads-l1-1-1.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 16531 WARNING: lib not found: api-ms-win-core-synch-l1-2-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 16609 WARNING: lib not found: api-ms-win-core-interlocked-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 16689 WARNING: lib not found: api-ms-win-core-sysinfo-l1-1-0.dll dependency of C:\WINDOWS\system32\ucrtbase.dll 16767 INFO: Caching module hooks... 16853 INFO: Analyzing C:\Users\ユーザー名\Python\Python3\なんか作るわ\kansei.py 20012 INFO: Processing pre-safe import module hook urllib3.packages.six.moves 23786 INFO: Loading module hooks... 23787 INFO: Loading module hook "hook-certifi.py"... 23837 INFO: Loading module hook "hook-encodings.py"... 24402 INFO: Loading module hook "hook-pydoc.py"... 24449 INFO: Loading module hook "hook-requests.py"... 24480 INFO: Loading module hook "hook-xml.py"... 24636 INFO: Loading module hook "hook-_tkinter.py"... 25371 INFO: checking Tree 25371 INFO: Building Tree because out00-Tree.toc is non existent 25386 INFO: Building Tree out00-Tree.toc 25943 INFO: checking Tree 25943 INFO: Building Tree because out01-Tree.toc is non existent 25943 INFO: Building Tree out01-Tree.toc 26115 INFO: Looking for ctypes DLLs 26130 INFO: Analyzing run-time hooks ... 26130 INFO: Including run-time hook 'pyi_rth__tkinter.py' 26224 INFO: Including run-time hook 'pyi_rth_multiprocessing.py' 26224 INFO: Looking for dynamic libraries 26990 INFO: Looking for eggs 26990 INFO: Using Python library c:\users\ユーザー名\appdata\local\programs\python\python36-32\python36.dll 26990 INFO: Found binding redirects: [] 26990 INFO: Warnings written to C:\Users\ユーザー名\Python\Python3\なんか作るわ\build\ok.exe\warnok.exe.txt 27130 INFO: Graph cross-reference written to C:\Users\ユーザー名\Python\Python3\なん か作るわ\build\ok.exe\xref-ok.exe.html 27271 INFO: checking PYZ 27271 INFO: Building PYZ because out00-PYZ.toc is non existent 27271 INFO: Building PYZ (ZlibArchive) C:\Users\ユーザー名\Python\Python3\なんか作る わ\build\ok.exe\out00-PYZ.pyz 28568 INFO: Building PYZ (ZlibArchive) C:\Users\ユーザー名\Python\Python3\なんか作る わ\build\ok.exe\out00-PYZ.pyz completed successfully. 28599 INFO: checking PKG 28599 INFO: Building PKG because out00-PKG.toc is non existent 28599 INFO: Building PKG (CArchive) out00-PKG.pkg 35193 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully. 40007 INFO: Bootloader c:\users\ユーザー名\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\bootloader\Windows-32bit\runw.exe 40007 INFO: checking EXE 40007 INFO: Building EXE because out00-EXE.toc is non existent 40007 INFO: Building EXE from out00-EXE.toc 40179 INFO: Appending archive to EXE C:\Users\ユーザー名\Python\Python3\なんか作くるわ\dist\ok.exe 40226 INFO: Building EXE from out00-EXE.toc completed successfully.

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

YouheiSakurai

2018/04/27 16:33

「どうにかなりませんか??」ではなく「どうにかしてくれる人はいませんか??」の間違いでしょうか?Noであればエラーメッセージ等々を追加すると良いと思います。
退会済みユーザー

退会済みユーザー

2018/04/27 20:44

どのようにPyinstallerを使いましたか?コマンドラインにどう書いたかなどあれば良いかと思います。あとは簡単なコードで試してみたときの結果はどうなったかとかもあるといいのでは。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問