1、安裝說(shuō)明
在linux安裝pyinstaller
2、執(zhí)行打包命令
$python_path/bin/pyinstaller -F test.py
3、調(diào)用dist目錄下文件
./test
常見(jiàn)問(wèn)題
Python library not found: libpython3.9m.so.1.0, libpython3.9m.so, libpython3.9.so.1.0, libpython3.9.so, libpython3.9mu.so.1.0
重新編譯安裝python即可文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-621906.html
./configure –prefix=/usr/local/python3.9 –enable-shared –with-ssl make make install文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-621906.html
到了這里,關(guān)于Pyinstaller打包可執(zhí)行文件運(yùn)行在linux容器中的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!