0
Help us understand the problem. What are the problem?

posted at

updated at

mysqlclientインストール時のエラー

EC2とMySQLを接続させるときに出会ったエラー

pip install mysqlclient
上記をしているのに,runserverすると
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?

と怒られる。

解決策

sudo yum install python3-devel mysql-devel
sudo yum install gcc

してから
pip install mysqlclient
するとうまくいった。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
0
Help us understand the problem. What are the problem?