Pyinstaller封装exe-TypeError: expected str, bytes or os.PathLike object, not NoneType
生活随笔
收集整理的這篇文章主要介紹了
Pyinstaller封装exe-TypeError: expected str, bytes or os.PathLike object, not NoneType
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
在項目根目錄下按照下面路徑打開,
\venv\Lib\site-packages\PyInstaller\depend\bindepend.py
搜索 Applies only to non Windows platforms,
按照下圖所示進(jìn)行代碼編寫,
文本代碼如下:
if is_win and 'VERSION.dll' in dlls:pydll = 'python%d%d.dll' % sys.version_info[:2]if pydll in PYDYLIB_NAMES:filename = getfullnameof(pydll)return filename在 pycharm 中,重新執(zhí)行 pyinstaller -F XXX.py 即可。
?
(SAW:Game Over!)
總結(jié)
以上是生活随笔為你收集整理的Pyinstaller封装exe-TypeError: expected str, bytes or os.PathLike object, not NoneType的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 用git从github网站上下载代码的方
- 下一篇: Python如何发布程序