gpt4 book ai didi

mac os x 上的 python 和 mysql

转载 作者:行者123 更新时间:2023-11-28 19:59:15 26 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Python import MySQLdb error - Mac 10.6

我已经尝试了所有可以在网上找到的方法。我已经使用 dmg 安装了 mysql,并且尝试安装了 mysql-python(我认为可行)。但是当我在 python 解释器“import MySQLdb”中运行时,我仍然得到错误:

>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.6-universal/egg/MySQLdb/__init__.py", line 19, in <module>

File "build/bdist.macosx-10.6-universal/egg/_mysql.py", line 7, in <module>
File "build/bdist.macosx-10.6-universal/egg/_mysql.py", line 6, in __bootstrap__
ImportError: dlopen(/Users/matthew/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Users/matthew/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so
Reason: image not found

我想不出问题所在。关于如何追踪这一点的想法?

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