gpt4 book ai didi

python - 未找到导入 MySQLdb 和 `GLIBC_2.14'

转载 作者:行者123 更新时间:2023-11-30 21:50:42 24 4
gpt4 key购买 nike

尝试运行导入 MySQLdb 的 Python 脚本。我运行了 yum update libgcrypt

Traceback (most recent call last):
File "/var/www/python/ig/ig-post.py", line 12, in <module>
import MySQLdb
File "/usr/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/user/.linuxbrew/lib/libcrypt.so.1)

也可能有帮助:

# yum info libgcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.ircam.fr
* epel: mirrors.ircam.fr
* extras: centos.mirror.fr.planethoster.net
* updates: centos.quelquesmots.fr
Installed Packages
Name : libgcrypt
Arch : x86_64
Version : 1.4.5
Release : 12.el6_8
Size : 524 k
Repo : installed
From repo : base
Summary : A general-purpose cryptography library
URL : http://www.gnupg.org/
License : LGPLv2+
Description : Libgcrypt is a general purpose crypto library based on the code used
: in GNU Privacy Guard. This is a development version.

Available Packages
Name : libgcrypt
Arch : i686
Version : 1.4.5
Release : 12.el6_8
Size : 228 k
Repo : base
Summary : A general-purpose cryptography library
URL : http://www.gnupg.org/
License : LGPLv2+
Description : Libgcrypt is a general purpose crypto library based on the code used
: in GNU Privacy Guard. This is a development version.

最佳答案

您有一个本地构建的 /home/user/.linuxbrew/lib/libcrypt.so.1,它是在使用 GLIBC-2.14(或更新版本)的系统上构建的。

该库与您尝试运行的系统(具有 GLIBC-2.13 或更早版本)不兼容

您需要从 LD_LIBRARY_PATH(或您用来获取它的任何机制)中删除 /home/user/.linuxbrew/lib,或者删除 /home/user/.linuxbrew/lib/libcrypt.so.1 一共。

关于python - 未找到导入 MySQLdb 和 `GLIBC_2.14',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47410893/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com