python setup.py egg_info mysqlclient

前端 未结 9 1710
孤独总比滥情好
孤独总比滥情好 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:22

    This worked for me:

    1. brew install mysql-connector-c

    2. edit mysql_config (locate it: which mysql_config)

    correct this in mysql_config:

    # Create options 
    libs="-L$pkglibdir"
    libs="$libs -l "
    

    It shoud be:

    # Create options 
    libs="-L$pkglibdir"
    libs="$libs -lmysqlclient -lssl -lcrypto"
    
    1. brew info openssl
    2. and finally pip3 install mysqlclient

提交回复
热议问题