首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误: httptools的生成轮失败

错误: httptools的生成轮失败
EN

Stack Overflow用户
提问于 2019-09-20 13:05:51
回答 2查看 5.8K关注 0票数 2
代码语言:javascript
复制
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/
----------------------------------------

错误:命令在退出状态1中出错:'e:\anaconda\python.exe‘-u -c’导入系统、setuptools、tokenize;sys.argv =-uopen)(file);code=f.read().replace('"'"'\r\n'"'"',‘open)(file);code=f.read().replace(’“‘”’\r\n‘“’”‘,’);f.close();exec(编译(代码,文件,‘exec’)‘安装-记录vut086we\ install -记录. the’-单版本-外部管理-编译-用户-前缀=检查日志以获得完整的命令输出。

EN

回答 2

Stack Overflow用户

发布于 2019-10-23 08:02:14

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

代码语言:javascript
复制
conda install -c conda-forge httptools
票数 2
EN

Stack Overflow用户

发布于 2020-05-18 15:09:18

我为类似的问题找到了解决办法,

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

如果您已经安装了visual studio,然后单击modify,请确保选择所需的包,特别是“Windows10SDK”,如图像中的1.2gb下载和第一次安装所需的4.2gb磁盘空间。

然后运行pip install rasa_nlu,成功构建包。

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

代码语言:javascript
复制
conda install -c conda-forge httptools

然后试着运行pip命令,

但是它并不适用于所有的windows-python版本的combinations.Any时间,构建这类包需要可视化c++。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58028979

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档