Resolving Python error: Unable to find vcvarsall.bat

While installing python package flask-user using pip I was getting the error Unable to find vcvarsall.bat

Resolution:

Download and install Microsoft Visual C++ Compiler for Python 2.7 from https://www.microsoft.com/en-in/download/details.aspx?id=44266
Go to C:\Python27\Lib\distutils and open the file msvc9compiler.py
Go to the def query_vcvarsall(version, arch="x86"):
Add following line of code below vcvarsall = find_vcvarsall(version)

vcvarsall = "C:\Users\NAME\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0" +"/vcvarsall.bat"

Go to command prompt and run pip install flask-user. This time it works fine

注意:vcvarsall = "C:\Users\NAME\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0" +"/vcvarsall.bat"

最新文章

  1. ActiveReports 11 新特性速递
  2. 25款创新的 PSD 格式搜索框设计素材【免费下载】
  3. [iOS]如何删除工程里面用cocoapods导入的第三方库
  4. OpenCms Application dev-ref
  5. oracle中查询含字母的数据[正则表达式]
  6. 给定范围内产生N个不同的随机数
  7. Dense Subsequence
  8. python 虚拟环境--virtualenv
  9. ASP.NET网络爬虫小研究 HtmlAgilityPack基础,爬取数据保存在数据库中再显示再自己的网页中
  10. 手摸手教你微信小程序开发之自定义组件
  11. monit配置文件
  12. ANY 和 IN 查询价格大于或等于"超级本"价格的商品,并且按价格降序排列
  13. 18.纯 CSS 创作 404 文字变形为 NON 文字的交互特效
  14. git 简单的操作命令
  15. 用sourceTree提交代码时遇到的问题
  16. Swift3 根据秒数获取视频时长(转换成00:00:00时间格式)以及将时长转换成秒
  17. C#中自定义属性的例子
  18. SDWC补题计划
  19. cxGrid 单元格回车移到下一行,当移到最后一个单元格时回车新增一行【转】
  20. 【LOJ】#2291. 「THUSC 2016」补退选

热门文章

  1. Centos7下快速安装Mongo3.2
  2. bash shell笔记4 处理用…
  3. bash shell笔记2 结构化命令
  4. smack 监听不同packet机制
  5. Idea搭建Scala开发环境的注意事项
  6. Win10系统优化/设置脚本
  7. 686. Repeated String Match 字符串重复后的子字符串查找
  8. 【转】request的cache-control和response cache-control不同点
  9. ubunt 14.04 Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modul
  10. 修改QPushButton北京颜色和字体背景