Windows7下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat

在Windows7x64下使用pip安装包的时候提示报错:Microsoft Visual C++ 9.0 is required  (Unable to find vcvarsall.bat)

如果你的系统没有VS2008的话,可以安装一个Micorsoft Visual C++ Compiler for Python 2.7的包,如果安装了更高版本的VS的话,可以通过修改“C:\Python27\Lib\distutils\msvc9compiler.py”文件来解决这个问题。

可以通过注册表查看你安装的版本号:

然后修改文件中的“find_vcvarsall(version)”函数,添加一句“version = 10.0”;10.0为你安装的版本号。

def find_vcvarsall(version):    """Find the vcvarsall.bat file    At first it tries to find the productdir of VS 2008 in the registry. If    that fails it falls back to the VS90COMNTOOLS env var.    """    version = 10.0    vsbase = VS_BASE % version    try:        productdir = Reg.get_value(r"%s\Setup\VC" % vsbase,                                   "productdir")    except KeyError:        productdir = None

但这个问题解决之后还是不能安装,又遇到问题:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':no such file or directory

下载安装包安装又遇到:Python Version 2.7 required which was not found in the registry

最后直接去下载64位的安装包就OK了。

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

Windows7下pip安装包报错 Microsoft Visual C++ 9 0 is required Unabl相关推荐

  1. Windows下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat

    刚在机器上windows环境下装上pip方便以后安装包的时候使用,谁知道第一次使用pip安装asyncio的时候就报错. 在Windows7x64下使用pip安装包的时候提示报错:Microsoft ...

  2. python安装库报错Microsoft visual c++ 14.0 is required问题解决办法

    下载安装包安装即可: https://964279924.ctfile.com/fs/1445568-239446865 or http://www.liangchan.net/liangchan/1 ...

  3. pip安装包报错Error:-3 域名解析暂时失败

    pip安装包报错Error:-3 域名解析暂时失败' 解决: 检查虚拟机网络适配器

  4. conda虚拟环境下使用pip安装包报错Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)

    Q1: conda虚拟环境下使用pip安装软件报错: WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, ...

  5. pip安装包报错Could not find a version that satisfies the requirement pymysql (from versions: none)

    使用python自带的pip安装包时,可能会报以下错误: ERROR: Could not find a version that satisfies the requirement pymysql ...

  6. 解决pip安装包报错:WARNING: Retrying (Retry(XXX) after connection broken by ‘ProxyError(‘

    下面以ubuntu系统为例,windows可以参考类似的解决思路 问题 pip安装任何包都报错WARNING: Retrying (Retry(total=4, connect=None, read= ...

  7. error: Microsoft Visual C++ 9.0 is required (Unabl

    2019独角兽企业重金招聘Python工程师标准>>> http://aka.ms/vcpython27 转载于:https://my.oschina.net/u/2367514/b ...

  8. Python pip install 安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法

    Python pip install 安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法 文章目录 ...

  9. 【ujson】pip安装ujson报错: error:Microsoft Visual C++ 14.0 is required

    在win10上pip安装ujson报错 在使用pip安装依赖包ujson时,遇到了问题,如下:  building 'ujson' extension     error: Microsoft Vis ...

最新文章

  1. JavaScript大杂烩9 - 理解BOM
  2. 开启apache的server-status辅助分析工具
  3. 关于有朋友询问,Spartacus,Fiori,SAP UI5这些术语的关系
  4. Java Code之多态
  5. adobe怎么统计字数_SEO技能:怎么写站内文章对网站排名更好?
  6. 2017年国内开源镜像站点汇总 1
  7. Bootstrap进度条堆叠
  8. pandas滑动窗口滑动整个dataframe
  9. 判断mysql指定数据库指定表是否存在的SQL语句
  10. C/C++[codeup 1942]进制转换
  11. Java快捷键标识符入门学习
  12. 电脑打开内存占用过高问题(开机85%【16G运存】)
  13. 毕业设计-分布式爬虫系统(干货)
  14. hadoop可以解决什么问题_在家艾灸可以解决这些问题
  15. 一个定语修饰两个并列的名词。
  16. 密码加密解密(一)——摩斯密码
  17. MCDF_svlab4 代码解读
  18. 海康监控虚拟服务器设置,海康监控如何连接网络设置教程
  19. 58同城校招题-判断既是回文,又是质数的数字
  20. VMOS-Pro一款虚拟机app。

热门文章

  1. 几种操作系统的基本特点
  2. 2019_WSDM_Social Attentional Memory Network Modeling Aspect- and Friend-level Differences in Recomme
  3. [笔记]Windows核心编程《二十》DLL的高级操作技术
  4. 小型微型计算机系统退休,《小型微型计算机系统》人工智能专栏征文
  5. PTA 租用游艇问题
  6. httpServer / proxyServer / nginx 1.7.9
  7. Matlab 2017a 安装、破解步骤
  8. 丝滑!CVPR 2021 视频插帧论文+开源代码汇总
  9. 如何恢复U盘中丢失的文件
  10. 二代测序的原理和简介