Connect Django to MySQL ERROR “Did you install mysqlclient?”
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I want Connect my Django Project To MySQL.
I install mysqlclient already
but when I migrate the project "python3 manage.py migrate"
It has a bug!!!
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
I don't know how to fix it! please help me
I Try to $ pip3 install mysql-python
It ERROR!! like this :
Collecting mysql-python
Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/
mysql django
add a comment |
I want Connect my Django Project To MySQL.
I install mysqlclient already
but when I migrate the project "python3 manage.py migrate"
It has a bug!!!
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
I don't know how to fix it! please help me
I Try to $ pip3 install mysql-python
It ERROR!! like this :
Collecting mysql-python
Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/
mysql django
add a comment |
I want Connect my Django Project To MySQL.
I install mysqlclient already
but when I migrate the project "python3 manage.py migrate"
It has a bug!!!
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
I don't know how to fix it! please help me
I Try to $ pip3 install mysql-python
It ERROR!! like this :
Collecting mysql-python
Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/
mysql django
I want Connect my Django Project To MySQL.
I install mysqlclient already
but when I migrate the project "python3 manage.py migrate"
It has a bug!!!
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
I don't know how to fix it! please help me
I Try to $ pip3 install mysql-python
It ERROR!! like this :
Collecting mysql-python
Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-n72xlj1k/mysql-python/
mysql django
mysql django
edited Nov 15 '18 at 9:23
Fah Nateecha
asked Nov 15 '18 at 8:07
Fah NateechaFah Nateecha
276
276
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Error itself tell what is the issue.
Did you try
pip install mysql-python
If this is not working make sure you have python-dev install . If you are on ubuntu use below.
apt-get install python3-mysqldb libmysqlclient-dev python-dev
For mac try this.
$ brew uninstall mysql
$ brew install mysql-connector-c
$ brew unlink mysql-connector-c
$ brew install mysql
$ pip install mysql-python
I try first It's not work error : Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-uqxsnr29/mysql-python/
– Fah Nateecha
Nov 15 '18 at 8:38
and python-dev install It say command not found. I use Mac OS
– Fah Nateecha
Nov 15 '18 at 8:39
@FahNateecha I have updated my answer
– burning
Nov 15 '18 at 8:54
$ brew uninstall mysql : It said "Error: No such keg: /usr/local/Cellar/mysql" $ brew install mysql-connector-c : It said "Warning: mysql-connector-c 6.1.11 is already installed and up-to-date" $ brew unlink mysql-connector-c : It said "Unlinking /usr/local/Cellar/mysql-connector-c/6.1.11... 48 symlinks removed" $ brew install mysql : It's work $ pip install mysql-python : It's Error "Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-sj3d_t9o/mysql-python/"
– Fah Nateecha
Nov 15 '18 at 9:13
I update Error when I $ pip install mysql-python in my comment
– Fah Nateecha
Nov 15 '18 at 9:24
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314892%2fconnect-django-to-mysql-error-did-you-install-mysqlclient%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Error itself tell what is the issue.
Did you try
pip install mysql-python
If this is not working make sure you have python-dev install . If you are on ubuntu use below.
apt-get install python3-mysqldb libmysqlclient-dev python-dev
For mac try this.
$ brew uninstall mysql
$ brew install mysql-connector-c
$ brew unlink mysql-connector-c
$ brew install mysql
$ pip install mysql-python
I try first It's not work error : Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-uqxsnr29/mysql-python/
– Fah Nateecha
Nov 15 '18 at 8:38
and python-dev install It say command not found. I use Mac OS
– Fah Nateecha
Nov 15 '18 at 8:39
@FahNateecha I have updated my answer
– burning
Nov 15 '18 at 8:54
$ brew uninstall mysql : It said "Error: No such keg: /usr/local/Cellar/mysql" $ brew install mysql-connector-c : It said "Warning: mysql-connector-c 6.1.11 is already installed and up-to-date" $ brew unlink mysql-connector-c : It said "Unlinking /usr/local/Cellar/mysql-connector-c/6.1.11... 48 symlinks removed" $ brew install mysql : It's work $ pip install mysql-python : It's Error "Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-sj3d_t9o/mysql-python/"
– Fah Nateecha
Nov 15 '18 at 9:13
I update Error when I $ pip install mysql-python in my comment
– Fah Nateecha
Nov 15 '18 at 9:24
add a comment |
Error itself tell what is the issue.
Did you try
pip install mysql-python
If this is not working make sure you have python-dev install . If you are on ubuntu use below.
apt-get install python3-mysqldb libmysqlclient-dev python-dev
For mac try this.
$ brew uninstall mysql
$ brew install mysql-connector-c
$ brew unlink mysql-connector-c
$ brew install mysql
$ pip install mysql-python
I try first It's not work error : Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-uqxsnr29/mysql-python/
– Fah Nateecha
Nov 15 '18 at 8:38
and python-dev install It say command not found. I use Mac OS
– Fah Nateecha
Nov 15 '18 at 8:39
@FahNateecha I have updated my answer
– burning
Nov 15 '18 at 8:54
$ brew uninstall mysql : It said "Error: No such keg: /usr/local/Cellar/mysql" $ brew install mysql-connector-c : It said "Warning: mysql-connector-c 6.1.11 is already installed and up-to-date" $ brew unlink mysql-connector-c : It said "Unlinking /usr/local/Cellar/mysql-connector-c/6.1.11... 48 symlinks removed" $ brew install mysql : It's work $ pip install mysql-python : It's Error "Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-sj3d_t9o/mysql-python/"
– Fah Nateecha
Nov 15 '18 at 9:13
I update Error when I $ pip install mysql-python in my comment
– Fah Nateecha
Nov 15 '18 at 9:24
add a comment |
Error itself tell what is the issue.
Did you try
pip install mysql-python
If this is not working make sure you have python-dev install . If you are on ubuntu use below.
apt-get install python3-mysqldb libmysqlclient-dev python-dev
For mac try this.
$ brew uninstall mysql
$ brew install mysql-connector-c
$ brew unlink mysql-connector-c
$ brew install mysql
$ pip install mysql-python
Error itself tell what is the issue.
Did you try
pip install mysql-python
If this is not working make sure you have python-dev install . If you are on ubuntu use below.
apt-get install python3-mysqldb libmysqlclient-dev python-dev
For mac try this.
$ brew uninstall mysql
$ brew install mysql-connector-c
$ brew unlink mysql-connector-c
$ brew install mysql
$ pip install mysql-python
edited Nov 15 '18 at 8:54
answered Nov 15 '18 at 8:32
burningburning
97531527
97531527
I try first It's not work error : Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-uqxsnr29/mysql-python/
– Fah Nateecha
Nov 15 '18 at 8:38
and python-dev install It say command not found. I use Mac OS
– Fah Nateecha
Nov 15 '18 at 8:39
@FahNateecha I have updated my answer
– burning
Nov 15 '18 at 8:54
$ brew uninstall mysql : It said "Error: No such keg: /usr/local/Cellar/mysql" $ brew install mysql-connector-c : It said "Warning: mysql-connector-c 6.1.11 is already installed and up-to-date" $ brew unlink mysql-connector-c : It said "Unlinking /usr/local/Cellar/mysql-connector-c/6.1.11... 48 symlinks removed" $ brew install mysql : It's work $ pip install mysql-python : It's Error "Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-sj3d_t9o/mysql-python/"
– Fah Nateecha
Nov 15 '18 at 9:13
I update Error when I $ pip install mysql-python in my comment
– Fah Nateecha
Nov 15 '18 at 9:24
add a comment |
I try first It's not work error : Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-uqxsnr29/mysql-python/
– Fah Nateecha
Nov 15 '18 at 8:38
and python-dev install It say command not found. I use Mac OS
– Fah Nateecha
Nov 15 '18 at 8:39
@FahNateecha I have updated my answer
– burning
Nov 15 '18 at 8:54
$ brew uninstall mysql : It said "Error: No such keg: /usr/local/Cellar/mysql" $ brew install mysql-connector-c : It said "Warning: mysql-connector-c 6.1.11 is already installed and up-to-date" $ brew unlink mysql-connector-c : It said "Unlinking /usr/local/Cellar/mysql-connector-c/6.1.11... 48 symlinks removed" $ brew install mysql : It's work $ pip install mysql-python : It's Error "Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-sj3d_t9o/mysql-python/"
– Fah Nateecha
Nov 15 '18 at 9:13
I update Error when I $ pip install mysql-python in my comment
– Fah Nateecha
Nov 15 '18 at 9:24
I try first It's not work error : Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-uqxsnr29/mysql-python/
– Fah Nateecha
Nov 15 '18 at 8:38
I try first It's not work error : Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-uqxsnr29/mysql-python/
– Fah Nateecha
Nov 15 '18 at 8:38
and python-dev install It say command not found. I use Mac OS
– Fah Nateecha
Nov 15 '18 at 8:39
and python-dev install It say command not found. I use Mac OS
– Fah Nateecha
Nov 15 '18 at 8:39
@FahNateecha I have updated my answer
– burning
Nov 15 '18 at 8:54
@FahNateecha I have updated my answer
– burning
Nov 15 '18 at 8:54
$ brew uninstall mysql : It said "Error: No such keg: /usr/local/Cellar/mysql" $ brew install mysql-connector-c : It said "Warning: mysql-connector-c 6.1.11 is already installed and up-to-date" $ brew unlink mysql-connector-c : It said "Unlinking /usr/local/Cellar/mysql-connector-c/6.1.11... 48 symlinks removed" $ brew install mysql : It's work $ pip install mysql-python : It's Error "Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-sj3d_t9o/mysql-python/"
– Fah Nateecha
Nov 15 '18 at 9:13
$ brew uninstall mysql : It said "Error: No such keg: /usr/local/Cellar/mysql" $ brew install mysql-connector-c : It said "Warning: mysql-connector-c 6.1.11 is already installed and up-to-date" $ brew unlink mysql-connector-c : It said "Unlinking /usr/local/Cellar/mysql-connector-c/6.1.11... 48 symlinks removed" $ brew install mysql : It's work $ pip install mysql-python : It's Error "Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cb/1r_2zrwn7597fzs9ktv0jbhh0000gn/T/pip-install-sj3d_t9o/mysql-python/"
– Fah Nateecha
Nov 15 '18 at 9:13
I update Error when I $ pip install mysql-python in my comment
– Fah Nateecha
Nov 15 '18 at 9:24
I update Error when I $ pip install mysql-python in my comment
– Fah Nateecha
Nov 15 '18 at 9:24
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314892%2fconnect-django-to-mysql-error-did-you-install-mysqlclient%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown