【问题标题】:Error when pip installing Django-Sass-Processor [duplicate]pip 安装 Django-Sass-Processor 时出错 [重复]
【发布时间】:2021-12-16 16:12:53
【问题描述】:

运行代码时出现以下错误:

pip install libsass django-compressor django-sass-processor

这是错误:

ERROR: Command errored out with exit status 1:
     command: 'c:\users\jsooh\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jsooh\\AppData\\Local\\Temp\\pip-install-htugdym8\\rcssmin_25699a9d5e6f4f74bfe031fe694d8529\\setup.py'"'"'; __file__='"'"'C:\\Users\\jsooh\\AppData\\Local\\Temp\\pip-install-htugdym8\\rcssmin_25699a9d5e6f4f74bfe031fe694d8529\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\jsooh\AppData\Local\Temp\pip-record-0h133shl\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\jsooh\appdata\local\programs\python\python39\Include\rcssmin'
         cwd: C:\Users\jsooh\AppData\Local\Temp\pip-install-htugdym8\rcssmin_25699a9d5e6f4f74bfe031fe694d8529\
    Complete output (9 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.9
    copying .\rcssmin.py -> build\lib.win-amd64-3.9
    running build_ext
    building '_rcssmin' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\jsooh\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jsooh\\AppData\\Local\\Temp\\pip-install-htugdym8\\rcssmin_25699a9d5e6f4f74bfe031fe694d8529\\setup.py'"'"'; __file__='"'"'C:\\Users\\jsooh\\AppData\\Local\\Temp\\pip-install-htugdym8\\rcssmin_25699a9d5e6f4f74bfe031fe694d8529\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\jsooh\AppData\Local\Temp\pip-record-0h133shl\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\jsooh\appdata\local\programs\python\python39\Include\rcssmin' Check the logs for full command 
output.

有谁知道如何解决这个问题?谢谢,如果您有任何问题,请告诉我。

【问题讨论】:

标签: python django django-models sass pip


【解决方案1】:

错误是你需要Microsoft Visual c++ 14.0,所以我建议你下载那个。

下载:https://visualstudio.microsoft.com/downloads/

error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

谢谢你:)

【讨论】:

    猜你喜欢
    • 2016-06-04
    • 2020-03-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多