zoukankan      html  css  js  c++  java
  • python---解决“Unable to find vcvarsall.bat”错误

    1. Python 2.7 会搜索 Visual Studio 2008.
      如果你电脑上没有这个版本的话,比如只有:
      1.Visual Studio 2010,在cmd里面执行:

      SET VS90COMNTOOLS=%VS100COMNTOOLS%

      2. Visual Studio 2012 的话:

      SET VS90COMNTOOLS=%VS110COMNTOOLS%

      然后就可以正常了

    如果安装了VS2010或是VS2012可以使用下面的方法解决:
    If you have Visual Studio 2010 installed, execute >
    SET VS90COMNTOOLS=%VS100COMNTOOLS% 
    or with Visual Studio 2012 installed >
    SET VS90COMNTOOLS=%VS110COMNTOOLS% 
    python 2.7在setup的时候查找的是VS2008编译的。
    For Windows installations: While running setup.py for for package installations Python 2.7 searches for an installed Visual Studio 2008. You can trick Python to use newer Visual Studio by setting correct path in VS90COMNTOOLS environment variable before calling setup.py.

  • 相关阅读:
    python爬取网络上图片【小例子】
    python统计英文单词出现次数【小例子】
    python敏感字处理【小例子】
    platform操作系统信息
    迭代器
    xxxxx
    test
    Jquery
    Jquery二
    DOM文档对象模型
  • 原文地址:https://www.cnblogs.com/zhepama/p/3505639.html
Copyright © 2011-2022 走看看