Error installing mysqldb

When installing mysqldb on mac osx 10.5:

sudo ../ bin / python / Users / Awais / mysqlpython / setup.py install

I get the following error:

Traceback (most recent call last):
File "/Users/Awais/mysqlpython/setup.py", line 15, in <module>
   metadata, options = get_config()
File "/Users/Awais/mysqlpython/setup_posix.py", line 32, in get_config
   metadata, options = get_metadata_and_options()
File "/Users/Awais/mysqlpython/setup_common.py", line 7, in get_metadata_and_options metadata = dict(config.items('metadata'))
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ConfigParser.py",    line 564, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'metadata'
+3
source share
2 answers

It seems you are installing MySQL for Python, but you must install MySQL first. So, first download the MySQL installer from http://dev.mysql.com/downloads/mysql/ and install it, and then try installing MySQL for Python.

0
source

RH EL 5 Linux 64- CentOS 6.4. , - , MySQL Python, , mysql-devel, , MySQL-python.

MySQL-python , CentOS 6.4 MySQL-python-1.2.3-0.3.c1.1.el6.x86_64, MySQL, 5.1.69.

MySQL-python . , , , , , , , SO, .

0
source

Source: https://habr.com/ru/post/1793306/


All Articles