pip install mysqlclient on amazon linux

后端 未结 1 1549
逝去的感伤
逝去的感伤 2021-01-15 19:47

sudo pip install mysqlclient is failing with the famous mysql_config path error The database is a remote mysql RDS. I tried to install a local mysql using yum (not that i ne

相关标签:
1条回答
  • 2021-01-15 20:36

    First you have to do some initial setup for the compiler of mysql on the os, at least from what I understand.

    Make sure you have compiler collection

    sudo yum install gcc

    Make sure mysql is configured for development purposes

    sudo yum install -y mysql-devel

    Try to reinstall

    pip install mysqlclient==1.3.12

    Hope this helps since it seemed to do the trick for me. I came across this here where I found for the equivalent to ubuntu's sudo apt-get install libmysqlclient-dev

    0 讨论(0)
提交回复
热议问题