首页 > 解决方案 > 错误:pip 安装先知后的命令失败,退出状态为 2 -

问题描述

我正在尝试使用 pip install 先知安装先知模块,但出现此错误:

错误:命令 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' 失败,退出状态为 2

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\roman\anaconda\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Roman\\AppData\\Local\\Temp\\pip-install-3atf7x8i\\prophet_b4d79ec5b1364530badc909dc352ecb0\\setup.py'"'"'; __file__='"'"'C:\\Users\\Roman\\AppData\\Local\\Temp\\pip-install-3atf7x8i\\prophet_b4d79ec5b1364530badc909dc352ecb0\\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\Roman\AppData\Local\Temp\pip-record-3wqyamtb\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\roman\anaconda\Include\prophet' Check the logs for full command output.

我真的被卡住了,不知道该怎么办

先感谢您!

标签: pythoninstallationpipanacondaanomaly-detection

解决方案


推荐阅读