我需要在pycharm IDE中配置一个django和mysql [英] i need to configure a django and mysql in pycharm IDE

查看:124
本文介绍了我需要在pycharm IDE中配置一个django和mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我参考这个 http://www.jetbrains.com/pycharm/quickstart/django_guide .html
但在执行
时收到错误$ b $不正确配置(加载MySQLdb模块时出错:%s%e)
django.core.exceptions.ImproperlyConfigured:加载MySQLdb时出错模块:没有名为'MySQLdb

i refer this http://www.jetbrains.com/pycharm/quickstart/django_guide.html but getting the error while executing raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb

推荐答案

确保您处于虚拟环境中

然后从 md5 =nofollow> Python mysql包

Then download the md5 package from Python mysql package

使用pip可以安装像


pip install MySQL-python == 1.2.5

pip install MySQL-python==1.2.5

这篇关于我需要在pycharm IDE中配置一个django和mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆