Python 错误:为httptools生成控制盘失败

Python 错误:为httptools生成控制盘失败,python,installation,anaconda,rasa-nlu,Python,Installation,Anaconda,Rasa Nlu,错误:命令出错,退出状态为1:'e:\anaconda\python.exe'-u-c'import sys,setuptools,tokenize;sys.argv[0]=“C:\Users\sajjan\AppData\Local\Temp\pip-install-s8m8v74o\httptools\setup.py”“”文件=“C:\Users\sajjan\AppData\Local\Temp\pip-install-s8m8v74o\httptools\setup.py”“”;f=g

错误:命令出错,退出状态为1:'e:\anaconda\python.exe'-u-c'import sys,setuptools,tokenize;sys.argv[0]=“C:\Users\sajjan\AppData\Local\Temp\pip-install-s8m8v74o\httptools\setup.py”“”文件=“C:\Users\sajjan\AppData\Local\Temp\pip-install-s8m8v74o\httptools\setup.py”“”;f=getattr(标记化,“‘打开’”,打开)(文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,文件,“'exec'”)”安装--记录'C:\Users\sajjan\AppData\Local\Temp\pip记录- vut086we\install record.txt'--外部管理的单一版本--编译--
user--prefix=检查日志以获得完整的命令输出。

在anaconda提示符下使用此命令,然后重试安装rasa。我想这会解决你的问题

while trying to install rasa nlu i am getting following error:

 Building wheel for httptools (setup.py) ... error
 ERROR: Command errored out with exit status 1:
 command: 'e:\anaconda\python.exe' -u -c 'import sys, setuptools, 
 tokenize; sys.argv[0] = 
'"'"'C:\\Users\\sajjan\\AppData\\Local\\Temp\\pip-install- 
s8m8v74o\\httptools\\setup.py'"'"'; 
__file__='"'"'C:\\Users\\sajjan\\AppData\\Local\\Temp\\pip-install- 
s8m8v74o\\httptools\\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\sajjan\AppData\Local\Temp\pip-wheel-ghmdzsv5' -- 
python-tag cp37
     cwd: C:\Users\sajjan\AppData\Local\Temp\pip-install- 
s8m8v74o\httptools\
Complete output (21 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\httptools
copying httptools\__init__.py -> build\lib.win-amd64-3.7\httptools
creating build\lib.win-amd64-3.7\httptools\parser
copying httptools\parser\errors.py -> build\lib.win-amd64- 
3.7\httptools\parser
  copying httptools\parser\__init__.py -> build\lib.win-amd64- 
3.7\httptools\parser
 running egg_info
 writing httptools.egg-info\PKG-INFO
 writing dependency_links to httptools.egg-info\dependency_links.txt
 writing top-level names to httptools.egg-info\top_level.txt
 reading manifest file 'httptools.egg-info\SOURCES.txt'
 reading manifest template 'MANIFEST.in'
 writing manifest file 'httptools.egg-info\SOURCES.txt'
 copying httptools\parser\parser.c -> build\lib.win-amd64- 
 3.7\httptools\parser
 running build_ext
 building 'httptools.parser.parser' 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 httptools
   Running setup.py clean for httptools
   Failed to build httptools
   Installing collected packages: httptools, sanic, colorclass, kafka- 
 python, async-generator, jmespath, botocore, s3transfer, boto3, sanic- 
 plugins-framework, sanic-cors, pydot, python-telegram-bot, python- 
 engineio, python-socketio, twilio, jsonpickle, fbmessenger, 
 terminaltables, docopt, pykwalify, humanfriendly, coloredlogs, python- 
 crfsuite, tabulate, sklearn-crfsuite, redis, fakeredis, tensorboard, 
 tensorflow-estimator, tensorflow, requests-toolbelt, webexteamssdk, 
 colorhash, ConfigArgParse, flask-cors, rasa-sdk, mattermostwrapper, 
 ruamel.yaml, pymongo, rocketchat-API, websocket-client, slackclient, 
 rasa, rasa-x
 Running setup.py install for httptools ... error
 ERROR: Command errored out with exit status 1:
  command: 'e:\anaconda\python.exe' -u -c 'import sys, setuptools, 
 tokenize; sys.argv[0] = 
 '"'"'C:\\Users\\sajjan\\AppData\\Local\\Temp\\pip-install- 
 s8m8v74o\\httptools\\setup.py'"'"'; 
 __file__='"'"'C:\\Users\\sajjan\\AppData\\Local\\Temp\\pip-install- 
 s8m8v74o\\httptools\\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\sajjan\AppData\Local\Temp\pip-record- 
 vut086we\install-record.txt' --single-version-externally-managed -- 
compile --user --prefix=
     cwd: C:\Users\sajjan\AppData\Local\Temp\pip-install- 
 s8m8v74o\httptools\
 Complete output (21 lines):
 running install
 running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\httptools
copying httptools\__init__.py -> build\lib.win-amd64-3.7\httptools
creating build\lib.win-amd64-3.7\httptools\parser
copying httptools\parser\errors.py -> build\lib.win-amd64-3.7\httptools\parser
copying httptools\parser\__init__.py -> build\lib.win-amd64-3.7\httptools\parser
running egg_info
writing httptools.egg-info\PKG-INFO
writing dependency_links to httptools.egg-info\dependency_links.txt
writing top-level names to httptools.egg-info\top_level.txt
reading manifest file 'httptools.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'httptools.egg-info\SOURCES.txt'
copying httptools\parser\parser.c -> build\lib.win-amd64-3.7\httptools\parser
running build_ext
building 'httptools.parser.parser' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------

我为类似问题找到的工作解决方案

转到错误中提到的,下载最新版本的安装程序,运行安装程序

如果已安装visual studio,请单击“修改”, 确保选择所需的软件包,特别是“windows 10 sdk”,如[首次安装需要大约1.2gb的下载和4.2gb的磁盘空间]

然后运行
pip install rasa\u nlu
,以成功构建包

如果系统中安装了Anaconda发行版,则可以尝试运行

conda install -c conda-forge httptools
然后尝试运行pip命令


<> p>但是对于所有的Windows Python版本组合都不起作用。任何时候,构建这些包都需要VisualC++。< /P>它告诉你库已经编译了代码,但是你没有编译器。最简单的解决方案可能是
conda安装-c conda forge httptools
@cel谢谢你,它成功了,经过一周的努力我终于安装了rasa,你是我的救世主你还没有指定你使用的是哪个windows操作系统版本。但这个错误是不言自明的。您需要安装Microsoft VC++构建工具14.0版本。
conda install -c conda-forge httptools