WIN下解决MySQL-Python模块pip install安装错误
2018-03-19 19:20
761 查看
错误描述:
环境win10 64位 python 3.6.3使用 pip install mysql-python 报错:error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools 解决办法:在 https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python 下载对应的whl文件.
MySQL-python, a Python database API 2.0 interface for the MySQL databaseConsider mysqlclient, a Python 3 compatible fork of MySQL-python.· MySQL_python‑1.2.5‑cp27‑none‑win32.whl
· MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl
因为我的是64位,所以选择下面的MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl下载到本地.回到 CMD 命令中 pip install D:\Python\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.
通过print(pip.pep425tags.get_supported())查看到MySQL_python-1.2.5-cp27-none-win_amd64.whl文件名格式不被支持 通过修改文件名再安装(具体内容可移步这位老哥) => http://blog.csdn.net/csdnjava2017/article/details/78159346将刚才下载的MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl文件名改为MySQL_python‑1.2.5‑cp36‑none‑win_amd64.whl.
继续运行 pip install D:\Python\MySQL_python-1.2.5-cp36-none-win_amd64.whl>>:Installing collected packages: MySQL-pythonSuccessfully installed MySQL-python-1.2.5
环境win10 64位 python 3.6.3使用 pip install mysql-python 报错:error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools 解决办法:在 https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python 下载对应的whl文件.
MySQL-python, a Python database API 2.0 interface for the MySQL databaseConsider mysqlclient, a Python 3 compatible fork of MySQL-python.· MySQL_python‑1.2.5‑cp27‑none‑win32.whl
· MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl
因为我的是64位,所以选择下面的MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl下载到本地.回到 CMD 命令中 pip install D:\Python\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.
通过print(pip.pep425tags.get_supported())查看到MySQL_python-1.2.5-cp27-none-win_amd64.whl文件名格式不被支持 通过修改文件名再安装(具体内容可移步这位老哥) => http://blog.csdn.net/csdnjava2017/article/details/78159346将刚才下载的MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl文件名改为MySQL_python‑1.2.5‑cp36‑none‑win_amd64.whl.
继续运行 pip install D:\Python\MySQL_python-1.2.5-cp36-none-win_amd64.whl>>:Installing collected packages: MySQL-pythonSuccessfully installed MySQL-python-1.2.5
相关文章推荐
- CentOS7上 pip install MySQL-python 安装失败(error: command 'gcc' failed with exit status 1)的解决办法
- pip安装python模块报延时错误的解决方法
- 解决Python下使用pip安装Builtwith模块字符解析错误
- linux下pip安装mysql-python的错误解决方法
- python mysql_config: command not found 安装 MySQL-python 的错误解决
- pip安装psutil模块时候报错:yum install python-devel mysql-devel zlib-devel openssl-devel
- win下 bundle install 显示json安装错误解决办法
- 记录解决Python下pip install MySQL-python失败的问题
- win 64位系统安装带有c编写的python模块出现ValueError: [u'path']解决
- 关于win 8系统安装mysql报2502、2503错误解决方法
- 安装mysql-noinstall-5.1.41-win32方法及1067错误解决方法
- 在 Mac 中安装 MySQLdb (Python mysql )出现“mysql_config not found”错误的解决方法
- pip安装mysql-python报致命错误:my_config.h:没有那个文件或目录
- Python easy_install安装插件错误(UnicodeDecodeError)解决办法
- mysql-python 安装错误: Cannot open include file: 'config-win.h': No such file or directory
- 遇到错误-----安装DBD:MySql模块遇到的问题及解决办法Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 479.
- win7下安装python-mysqldb模块以及还报No module named MYSQLdb错误的原因
- mac xcode5.1安装Mysql-python编译错误解决
- Windows下解决 MySQL-python-1.2.3b1 的安装编译错误
- 解决linux精简客户端下安装python的oracle模块出现的错误