Django笔记 解决找不到vcvarsall.bat的错误
2016-05-31 21:48
429 查看
安装 django-compressor时,发生下面的错误
Error
解决办法
参考
https://github.com/czlee/tabbycat/issues/265
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
相关文章推荐
- django中使用jquery ajax post数据出现403错误的解决办法(两种方法)
- django使用ajax post数据出现403错误如何解决
- windows+apache+mod_python配置django运行环境
- python Django连接MySQL数据库做增删改查
- django自定义Field实现一个字段存储以逗号分隔的字符串
- Django框架利用ajax实现批量导入数据功能
- python Django批量导入数据
- BootStrap扔进Django里的方法详解
- 在Python的Django框架中加载模版的方法
- 在Django中使用Sitemap的方法讲解
- 详解Django中的form库的使用
- Django中的CACHE_BACKEND参数和站点级Cache设置
- 剖析Django中模版标签的解析与参数传递
- Python中DJANGO简单测试实例
- Python的Django框架中的数据库配置指南
- 在Django的上下文中设置变量的方法
- 在Python的Django框架中编写编译函数
- 以一个投票程序的实例来讲解Python的Django框架使用
- 在Django的URLconf中进行函数导入的方法
- 在Python的Django框架中生成CSV文件的方法