Improperlyconfigured Error Loading Mysqldb Module Django
Contents |
here for a quick overview of the site error loading mysqldb module: no module named mysqldb mac Help Center Detailed answers to any questions you might have Meta Discuss
Raise Improperlyconfigured("error Loading Mysqldb Module: %s" % E)
the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more environmenterror: mysql_config not found about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping no module named mysqldb windows each other. Join them; it only takes a minute: Sign up django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb up vote 48 down vote favorite 11 The problem Im facing while trying to connect to database for mysql. I have also given the database settings that i have used. Traceback (most recent call last): File "manage.py", line 10, in
here for a quick overview of
Fatal Error C1083: Cannot Open Include File: 'config-win.h': No Such File Or Directory
the site Help Center Detailed answers to any questions pip install mysql-python error you might have Meta Discuss the workings and policies of this site About
_mysql.c:44:23: Fatal Error: My_config.h: No Such File Or Directory
Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions http://stackoverflow.com/questions/15312732/django-core-exceptions-improperlyconfigured-error-loading-mysqldb-module-no-mo Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up django - Error loading MySQLdb module: http://stackoverflow.com/questions/12772687/django-error-loading-mysqldb-module-no-module-named-mysqldb No module named MySQLdb up vote 3 down vote favorite 1 I'm using Django 1.4.1 with Active Python 2.7 on Win7. I have installed the MySQL module using pypm install mysql-python. The database engine is django.db.backends.mysql. import MySQLdb works in the interactive shell. .\manage.py syncdb created the tables with no problem. However, when I open the site in the browser, I get Error loading MySQLdb module: No module named MySQLdb: Environment: Request Method: GET Request URL: http://whatever/ Django Version: 1.4.1 Python Version: 2.7.2 Installed Applications: ('django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response 89. response = middleware_method(request) File "C:\Python27\lib\site-packages\django\contrib\sessions\middleware.py" in process_request 10. engine = import_module(settings.SESSION_ENGINE) File "C:\Python27\lib\site-packages\django\utils\importlib.py" in import_module 35. __import__(name) File "C:\Python27\lib\site-packages\django\contrib\sessions\backends\cached_db.py" in
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings http://stackoverflow.com/questions/26560973/python3-mysql-error-loading-mysqldb-module-no-module-named-mysqldb and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it error loading only takes a minute: Sign up Python3 + MySql: Error loading MySQLdb module: No module named 'MySQLdb' up vote 8 down vote favorite 3 I am new to Python and trying to setup a Django project to work with MySql. I have read through the documentation as well as some other StackOverflow posts about the topic, but I still can't error loading mysqldb get it to work. When I try to run a migrate in Django I get the following error: Error loading MySQLdb module: No module named 'MySQLdb' I have installed the recommended MySql Python Connector (2.0.1) selecting Ubuntu (since I am on Mint Linux). It installs correctly. I still get the error. I don't need to add this library to the project or anything, right? It looks like python should just be aware of this and run successfully. What can I do? Thanks. EDIT: I forgot to mention: I am running Python 3.4 - a lot of typical solutions are still using 2.7, so they don't work and all the solutions with 3.0 I have tried without success. python mysql django mysql-python share|improve this question asked Oct 25 '14 at 9:24 skaz 8,145154781 I had luck using: github.com/nakagami/django-cymysql But I would prefer to use the "official" connector. Or am I thinking about this wrong? –skaz Oct 25 '14 at 9:32 There are a lot of similar questions here "python3 mysql" stackoverflow.com/search?q=python3+mysql I recommend you try github.com/d