python - 错误: Failed building wheel for httptools

标签 python installation anaconda rasa-nlu

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 '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(tokenize, '"'"'打开'"'"', 打开)(文件);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, 文件, '"'"'exec'"'"'))' 安装--record 'C:\Users\sajjan\AppData\Local\Temp\pip-record- vut086we\install-record.txt'--单一版本-外部管理--编译-- user --prefix= 检查日志以获取完整的命令输出。

最佳答案

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

conda install -c conda-forge httptools

关于python - 错误: Failed building wheel for httptools,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58028979/

相关文章:

python - 按链式连接关系中的列排序

python - 为什么我的一些字典键和值消失了?

firefox - Greasemonkey 无法识别且无法安装本地脚本

python - 更新anaconda和安装新包的问题

python - 在 python 2.7 中为plotly和matplotlib创建环境

python - afex aov_ez ezANOVA 差异

python - 使用flask获取用户的URL并压缩图像

python - setup.py 从 bdist 中排除一些 python 文件

ssl - 在 JBoss 上安装 SSL 证书

python - 使用 Anaconda 3.4 在 Windows 7 64 位中安装 Pygame