Django笔记 解决找不到vcvarsall.bat的错误

原创 2016年05月31日 21:48:42

安装 django-compressor时,发生下面的错误
Error

Installing collected packages: rcssmin, rjsmin, django-compressor, sqlparse, django-debug-toolbar, django-ipware, libsas
s, django-libsass, django-suit, django-dynamic-preferences
  Running setup.py install for rcssmin ... error
    Complete output from command c:\users\czlee\git\tabbycat\venv\scripts\python.exe -u -c "import setuptools, tokenize;
__file__='C:\\Users\\czlee\\AppData\\Local\\Temp\\pip-build-idha5rwu\\rcssmin\\setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\czlee\AppData\Local\
Temp\pip-ev6w6zrs-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\czl
ee\git\tabbycat\venv\include\site\python3.4\rcssmin:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.4
    copying .\rcssmin.py -> build\lib.win-amd64-3.4
    running build_ext
    building '_rcssmin' extension
    error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).

    ----------------------------------------
Command "c:\users\czlee\git\tabbycat\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\czl
ee\\AppData\\Local\\Temp\\pip-build-idha5rwu\\rcssmin\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).
read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\czlee\AppData\Local\Temp\pip-ev6w6zrs-record
\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\czlee\git\tabbycat\venv\inc
lude\site\python3.4\rcssmin" failed with error code 1 in C:\Users\czlee\AppData\Local\Temp\pip-build-idha5rwu\rcssmin

解决办法

pip install wheel

pip install rcssmin --install-option="--without-c-extensions"
pip install rjsmin --install-option="--without-c-extensions"

参考
https://github.com/czlee/tabbycat/issues/265

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

彻底解决安装Python扩展包时Unable to find vcvarsall.bat

彻底解决安装Python扩展包时Unable to find vcvarsall.bat

python 解决“Unable to find vcvarsall.bat”错误

“Unable to find vcvarsall.bat”错误。找了很久教程,最后发现有时候解决的方法并没有想象中那么难,但往往会被忽略,细心一些,也许会省好多时间。

python学习--windows下安装Numpy包的错误:Unable to find vcvarsall.bat

今天在安装numpy包的时候,无论是通过pip install numpy 还是上网下载numpy包后安装都是出现问题:error: Unable to find vcvarsall.bat,于是百度...
  • lc013
  • lc013
  • 2015-08-18 19:35
  • 288

Windows 下安装Python包(Numpy)的错误:Unable to find vcvarsall.bat

情景简介:   Windows 环境下安装Python2.7的Numpy扩展包时提示:error: Unable to find vcvarsall.bat   经过不懈的Google/Bin...

Scrapy安装出错:error: Unable to find vcvarsall.bat的解决方法

安装Scrapy过程中出错:error: Unable to find vcvarsall.bat Python版本2.7.11 系统为win7 32位系统 使用pip install scrapy ...

Windows系统 安装Python扩展包时出现“Misrosoft Visual C++ 9.0 is required / Unable to find vcvarsall.bat”的解决办法

pip类似于nodejs里面的npm,安装Python扩展包非常方便,但是安装部分扩展包时会出现“Misrosoft Visual C++ 9.0 is required / Unable to fi...

windows下安装python的C扩展编译环境(解决“Unable to find vcvarsall.bat”)

转自:http://www.cnblogs.com/fbwfbi/p/4509622.html N久没有开始写博客了,总觉得要随便记点东西,岁月蹉跎,曾经搞得一些东西、技术、工具,说丢也就丢...

Python error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)解决方案

error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it … 解决方案python通过pip...

python安装扩展”unable to find vcvarsall.bat“的解决办法

产生原因: python3.4用的是msvs2010编译的,所以python3.4默认只能认出msvs2010。 python2.7用的是msvs2008编译的,所以python2.7默认只能认出...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)