python setup.py egg_info mysqlclient

前端 未结 9 1725
孤独总比滥情好
孤独总比滥情好 2020-12-05 01:05

Trying to install mysqlclient using pip3 on Python 3.6.0

$ pip3 install mysqlclient
Collecting mysqlclient
  Using cached mysqlclient-1.3.10.tar.gz
    Comp         


        
9条回答
  •  心在旅途
    2020-12-05 01:26

    For Python 2.7 on specific programs:

    1. sudo chown -R $USER /Library/Python/2.7
    2. brew install mysql@5.7
    3. brew install mysql-connector-c
    4. brew link --overwrite mysql@5.7
    5. echo 'export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"' >> ~/.bash_profile
    6. sed -i -e 's/libs="$libs -l "/libs="$libs -lmysqlclient -lssl -lcrypto"/g' /usr/local/bin/mysql_config
    7. pip install MySql-python

    This solved all issues I was having running a program that ran on Python 2.7 on and older version of MySql

提交回复
热议问题