简体   繁体   English

错误:httptools 构建轮子失败

[英]ERROR: Failed building wheel for httptools

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/
----------------------------------------

ERROR: Command errored out with exit status 1: 'e:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize;错误:命令出错,退出状态为 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'"'"'; 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= Check the logs for full command output. 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= 检查日志以获取完整命令 output。

Try with this command on your anaconda prompt and try again for install rasa.在 anaconda 提示符下尝试使用此命令,然后重试安装 rasa。 I think this will solve your problem我认为这将解决您的问题

conda install -c conda-forge httptools

Working solution I found for similar problem,我为类似问题找到的工作解决方案,

Go to Visual Studio download page as mentioned in the error, download the installer for the latest version, run the installer, Go 到Visual Studio 下载页面如错误中所述,下载最新版本的安装程序,运行安装程序,

if you already installed visual studio then click modify, make sure to select the required packages, especially 'windows 10 sdk' as in the image [Around 1.2gb download and 4.2gb disk space needed for first install].如果您已经安装了 Visual Studio 然后单击修改,请确保 select 所需的软件包,尤其是图像中的“windows 10 sdk”[大约 1.2gb 下载和 4.2gb 磁盘空间需要第一次安装]。

Then run pip install rasa_nlu , to successfully build the package.然后运行pip install rasa_nlu ,成功构建 package。

If Anaconda distribution is installed in your system, you can try running如果您的系统中安装了 Anaconda 发行版,您可以尝试运行

conda install -c conda-forge httptools

then try to run the pip command,然后尝试运行 pip 命令,

But it won't work for all windows-python version combinations.Any time, building these kind of package requires visual c++.但它不适用于所有 windows-python 版本组合。任何时候,构建这些 package 都需要视觉 c++。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM