Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Can not install mysqlclient-python in python3 on mac #175

Closed
@tingxin

Description

@tingxin

Hi All,
I follow the readme.md file and follow those steps to install mysqlclient:

  1. create a new virtualenv
  2. use python3.5
  3. brew install mysql-connector-c
  4. sudo pip3 install mysqlclient or sudo pip install mysqlclient

i got the error like this:
`
Using cached mysqlclient-1.3.10.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/private/tmp/pip-build-th5nbtoa/mysqlclient/setup.py", line 17, in
metadata, options = get_config()
File "/private/tmp/pip-build-th5nbtoa/mysqlclient/setup_posix.py", line 54, in get_config
libraries = [dequote(i[2:]) for i in libs if i.startswith('-l')]
File "/private/tmp/pip-build-th5nbtoa/mysqlclient/setup_posix.py", line 54, in
libraries = [dequote(i[2:]) for i in libs if i.startswith('-l')]
File "/private/tmp/pip-build-th5nbtoa/mysqlclient/setup_posix.py", line 12, in dequote
if s[0] in ""'" and s[0] == s[-1]:
IndexError: string index out of range

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-th5nbtoa/mysqlclient/
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions