python-2.7 - 找不到 Pyinstaller GLIBC_2.15

标签 python-2.7 pyinstaller

在 Linux 32 位 Ubuntu 11 上生成了一个可执行文件并在 32 位 Ubuntu 10 上对其进行了测试,但失败并显示“GLIBC_2.15”未找到。

最佳答案

Cyrhon FAQ 部分说:

Under Linux, I get runtime dynamic linker errors, related to libc. What should I do? The executable that PyInstaller builds is not fully static, in that it still depends on the system libc. Under Linux, the ABI of GLIBC is backward compatible, but not forward compatible. So if you link against a newer GLIBC, you can't run the resulting executable on an older system. The supplied binary bootloader should work with older GLIBC. However, the libpython.so and other dynamic libraries still depends on the newer GLIBC. The solution is to compile the Python interpreter with its modules (and also probably bootloader) on the oldest system you have around, so that it gets linked with the oldest version of GLIBC.

How to get recent Python environment working on old Linux distribution? The issue is that Python and its modules has to be compiled against older GLIBC. Another issue is that you probably want to use latest Python features and on old Linux distributions there is only available really old Python version (e.g. on Centos 5 is available Python 2.4).

关于python-2.7 - 找不到 Pyinstaller GLIBC_2.15,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17654363/

相关文章:

django - 如何解码 token 并获取djangorestframework-jwt包的信息为Django

python - Pandas DataFrame 相等 - 索引编号

Python xlrd 通过日期转换将 Excel xlsx 解析为 csv

python - pyinstaller 创建 EXE 运行时错误 : maximum recursion depth exceeded while calling a Python object

django - Pyinstaller可执行运行时错误: Script runserver not found

python - 如何安装 PyInstaller?

python-2.7 - 使用Dockerfile和centos找不到make :7 image

python - 将一个 Popen 的标准输出重定向到另一个 Popen 标准输入

python - Pyinstaller --windowed 或 --noconsole .exe 不允许 chromedriver 打开

c# - 如何将我的 python 模块及其依赖项(例如 Numpy/Scipy)打包到一个文件中,例如用于 C# 调用的 dll?