Microsoft Visual C++ 14.0 is required. --rcssmin、rjsmin、django-compressor
问题:
Building wheels for collected packages: rcssmin Building wheel for rcssmin (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'd:\bu\env\d_blog\scripts\python36.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\zhang\\AppData\\Local\\Temp\\pip-install-fcqyfgm0\\rcssmin\\setup.py'"'"'; __file__='"'"'C:\\Users\\zhang\\AppData\\Local\\Temp\\pip-install-fcqyfgm0\\rcssmin\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\zhang\AppData\Local\Temp\pip-wheel-axd9v5ql' --python-tag cp36 cwd: C:\Users\zhang\AppData\Local\Temp\pip-install-fcqyfgm0\rcssmin\ Complete output (9 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.6 copying .\rcssmin.py -> build\lib.win-amd64-3.6 running build_ext building '_rcssmin' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ ---------------------------------------- ERROR: Failed building wheel for rcssmin Running setup.py clean for rcssmin Failed to build rcssmin Installing collected packages: rcssmin, django-compressor Running setup.py install for rcssmin ... error ERROR: Command errored out with exit status 1: command: 'd:\bu\env\d_blog\scripts\python36.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\zhang\\AppData\\Local\\Temp\\pip-install-fcqyfgm0\\rcssmin\\setup.py'"'"'; __file__='"'"'C:\\Users\\zhang\\AppData\\Local\\Temp\\pip-install-fcqyfgm0\\rcssmin\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\zhang\AppData\Local\Temp\pip-record-hv61__h7\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\bu\env\d_blog\include\site\python3.6\rcssmin' cwd: C:\Users\zhang\AppData\Local\Temp\pip-install-fcqyfgm0\rcssmin\ Complete output (9 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.6 copying .\rcssmin.py -> build\lib.win-amd64-3.6 running build_ext building '_rcssmin' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ ---------------------------------------- ERROR: Command errored out with exit status 1: 'd:\bu\env\d_blog\scripts\python36.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\zhang\\AppData\\Local\\Temp\\pip-install-fcqyfgm0\\rcssmin\\setup.py'"'"'; __file__='"'"'C:\\Users\\zhang\\AppData\\Local\\Temp\\pip-install-fcqyfgm0\\rcssmin\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\zhang\AppData\Local\Temp\pip-record-hv61__h7\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\bu\env\d_blog\include\site\python3.6\rcssmin' Check the logs for full command output.
解决方案:
pip install rcssmin --install-option="--without-c-extensions" pip install rjsmin --install-option="--without-c-extensions" pip install django-compressor --upgrade
参考:http://www.cnblogs.com/achjiang/
浙公网安备 33010602011771号