ERROR: Command errored out with exit status 1:
command: 'C:UsersHpAnaconda3envsrasapython.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-h_n6a0vq\ujson\setup.py'"'"'; __file__='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-h_n6a0vq\ujson\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersHpAppDataLocalTemppip-record-k0pxj3beinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:UsersHpAnaconda3envsrasaIncludeujson'
cwd: C:UsersHpAppDataLocalTemppip-install-h_n6a0vqujson
Complete output (5 lines):
running install
running build
running build_ext
building 'ujson' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
错误:命令出错,退出状态为1:'C:\Users\Hp\Anaconda3\envs\rasa\python.exe'-u-C'import-sys,setuptools,tokenize;sys.argv[0]=""C:\Users\Hp\AppData\Local\Temp\pip-install-h_n6a0vq\ujson\setup.py'""'文件='"'"'C:\Users\Hp\AppData\Local\Temp\pip-install-h_n6a0vq\ujson\setup.py'"'";f=getattr(标记化,'"'"打开'"',打开((文件(;code=f.read((.replace('"'"'\r\n'"','""'\n'"'(;f.关闭((;exec(compile(code,file,'"'"'exec'"'(('install--record'C:\Users\Hp\AppData\Local\Temp\pip记录-k0pxj3be\install record.txt'--外部管理的单一版本--compile--install headers'C:\Users\Hp\Anaconda3\envs\rasa\Include\ujson'检查日志以获取完整的命令输出。
您需要从这里安装C++构建工具:https://visualstudio.microsoft.com/visual-cpp-build-tools/这些是构建某些python轮子所必需的。它们本身不是python包,所以这不是你在anaconda中做的事情。