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, '“”“'open'”'“,打开)(文件); code = f.read()。replace('”'“'\ r \ n'”'“', '“'”'\\ n'“'”'); f.close(); exec(compile(code, file ,'“'”'exec'“'”')))'安装--record'C:\ Users \ sajjan \ AppData \ Local \ Temp \ pip-record- vut086we \ install-record.txt'-单一版本-外部管理-编译- user --prefix =检查日志以获取完整的命令输出。
答案 0 :(得分:0)
在anaconda提示符下尝试使用此命令,然后重试以安装rasa。我认为这可以解决您的问题
conda install -c conda-forge httptools
答案 1 :(得分:0)
我发现类似问题的有效解决方案,
按照错误中的说明转到Visual Studio download page,下载最新版本的安装程序,运行安装程序,
如果您已经安装了Visual Studio,则单击“修改”, 确保选择所需的软件包,尤其是image中的“ windows 10 sdk”软件包(首次安装所需的1.2gb下载空间和4.2gb磁盘空间)。
然后运行pip install rasa_nlu
,以成功构建软件包。
如果系统中安装了Anaconda发行版,则可以尝试运行
conda install -c conda-forge httptools
然后尝试运行pip命令,
但是它不适用于所有Windows-python版本组合。任何时候,构建此类软件包都需要视觉c ++。