pip安装MySQL-python报错error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++与_

    pip安装MySQL-python报错error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++与__mysql.c(42): fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory错误。

     相信大家在安装这个mysql的路上遇到了不少的问题,在网上搜索这个问题大致有这莫两种方法一种是直接按照提示安装相关的c++组件;另外一种是安装twisted对应版本的whl文件这两种方案。

      我说一下我的大概流程首先先挑一个简单的方案安装twisted对应版本的whl文件,安装完之后测试pip install mysql-python,还是报error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ 这个错误,那就没办法了安装c++ 14.0吧,安装了半天再安装mysql-python,好了之前的 Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++问题没有了,有了一个新的问题_mysql.c(42): fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory错误。

       再次进行百度又搜到了各种答案,正当我准备挨个试的时候,想到是不是我的python版本的问题,然后在查找资料的时候看到了下面的一段话

pip安装MySQL-python报错error: Microsoft Visual C++ 14.0 is required. Get it with

              看完这段话弄得我哭笑不得,原来我做了半天无用功,想把 mysql-python 安装到我的python3.6上。

              在这里把这个错误贴出来,与大家共勉吧,希望我以后不要再犯这种低级的错误了!

你可能感兴趣的:(机器学习)