缺少MySQLdb 模块,pip install MySQL-python 异常
2017-11-13 16:25
761 查看
直接使用pip install MySQL-python,报了下面的错:
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb.
Did you install mysqlclient or MySQL-python?
发现原来是pip 无法识别系统是多少位的(win果然不怎么爽)
后来下载了
MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl
pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl
MySQL_python-1.2.5-cp27-none-win_amd64.whl is not a supported wheel on this platform.
安装wheel:pip instal
继续安装:
pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl
MySQL_python-1.2.5-cp27-none-win_amd64.whl is not a supported wheel on this platform.
还有错,真的是问题一大堆啊(主要还是不了解),后来发现原来我的python装的是32位的,喷血(电脑是64位的)
好吧,再去下载一个32位的MySQL-python
http://download.csdn.net/download/u011671022/10116616
pip install MySQL_python-1.2.5-cp27-none-win32.whl
Processing c:\users\luzhiwei\downloads\mysql_python-1.2.5-cp27-none-win32.whl
Installing collected packages: MySQL-python
Successfully installed MySQL-python-1.2.5
好了,终于安装好了。
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb.
Did you install mysqlclient or MySQL-python?
发现原来是pip 无法识别系统是多少位的(win果然不怎么爽)
后来下载了
MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl
pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl
MySQL_python-1.2.5-cp27-none-win_amd64.whl is not a supported wheel on this platform.
安装wheel:pip instal
继续安装:
pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl
MySQL_python-1.2.5-cp27-none-win_amd64.whl is not a supported wheel on this platform.
还有错,真的是问题一大堆啊(主要还是不了解),后来发现原来我的python装的是32位的,喷血(电脑是64位的)
好吧,再去下载一个32位的MySQL-python
http://download.csdn.net/download/u011671022/10116616
pip install MySQL_python-1.2.5-cp27-none-win32.whl
Processing c:\users\luzhiwei\downloads\mysql_python-1.2.5-cp27-none-win32.whl
Installing collected packages: MySQL-python
Successfully installed MySQL-python-1.2.5
好了,终于安装好了。
相关文章推荐
- WIN下解决MySQL-Python模块pip install安装错误
- pip install mysql-python fails with EnvironmentError: mysql_config not found
- python使用mysql的三个模块:mysql.connector、sqlalchemy、MySQLdb
- pip install MySQL-python error in virtualenv on mac
- Python 安装MySQLdb模块(pip方式,亲测有效)
- Eclipse Pydev添加MySQLdb模块,Windows下安装MySQL-python
- Windows 10 64位下安装python2模块MySQLdb(MySQL-python)遇到的坑
- Python 3.5 for windows 10 通过pip安装mysqlclient模块 error:C1083
- windows pip install MySQL-python
- CentOS7上 pip install MySQL-python 安装失败(error: command 'gcc' failed with exit status 1)的解决办法
- pip install mysql-python fails with EnvironmentError: mysql_config not found
- python 模块安装,pip/easy_install
- Centos 安装python MySQL 模块 -- MySQLdb
- python 连接mysql(mariadb) (mysqldb模块)
- 记录用pip安装mysql-python (MySQLdb) 遇到的错误的解决方案
- centos7 使用pip安装python-mysqldb模块出现的问题:
- pip install MySQL-python 报 "EnvironmentError: mysql_config not found"
- 解决Python下pip install MySQL-python失败的问题
- pip install MySQL-python
- python 使用mysqldb模块通过SSHTunnelForwarder隧道连接mysql