skip to Main Content
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:anacondapython.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('"'"'rn'"'"', 
'"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
bdist_wheel -d 'C:UserssajjanAppDataLocalTemppip-wheel-ghmdzsv5' -- 
python-tag cp37
     cwd: C:UserssajjanAppDataLocalTemppip-install- 
s8m8v74ohttptools
Complete output (21 lines):
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.7
creating buildlib.win-amd64-3.7httptools
copying httptools__init__.py -> buildlib.win-amd64-3.7httptools
creating buildlib.win-amd64-3.7httptoolsparser
copying httptoolsparsererrors.py -> buildlib.win-amd64- 
3.7httptoolsparser
  copying httptoolsparser__init__.py -> buildlib.win-amd64- 
3.7httptoolsparser
 running egg_info
 writing httptools.egg-infoPKG-INFO
 writing dependency_links to httptools.egg-infodependency_links.txt
 writing top-level names to httptools.egg-infotop_level.txt
 reading manifest file 'httptools.egg-infoSOURCES.txt'
 reading manifest template 'MANIFEST.in'
 writing manifest file 'httptools.egg-infoSOURCES.txt'
 copying httptoolsparserparser.c -> buildlib.win-amd64- 
 3.7httptoolsparser
 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:anacondapython.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('"'"'rn'"'"', 
 '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
 install --record 'C:UserssajjanAppDataLocalTemppip-record- 
 vut086weinstall-record.txt' --single-version-externally-managed -- 
compile --user --prefix=
     cwd: C:UserssajjanAppDataLocalTemppip-install- 
 s8m8v74ohttptools
 Complete output (21 lines):
 running install
 running build
running build_py
creating build
creating buildlib.win-amd64-3.7
creating buildlib.win-amd64-3.7httptools
copying httptools__init__.py -> buildlib.win-amd64-3.7httptools
creating buildlib.win-amd64-3.7httptoolsparser
copying httptoolsparsererrors.py -> buildlib.win-amd64-3.7httptoolsparser
copying httptoolsparser__init__.py -> buildlib.win-amd64-3.7httptoolsparser
running egg_info
writing httptools.egg-infoPKG-INFO
writing dependency_links to httptools.egg-infodependency_links.txt
writing top-level names to httptools.egg-infotop_level.txt
reading manifest file 'httptools.egg-infoSOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'httptools.egg-infoSOURCES.txt'
copying httptoolsparserparser.c -> buildlib.win-amd64-3.7httptoolsparser
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:anacondapython.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:UserssajjanAppDataLocalTemppip-install-s8m8v74ohttptoolssetup.py'”‘”‘; file='”‘”‘C:UserssajjanAppDataLocalTemppip-install-s8m8v74ohttptoolssetup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(file);code=f.read().replace(‘”‘”‘rn'”‘”‘, ‘”‘”‘n'”‘”‘);f.close();exec(compile(code, file, ‘”‘”‘exec'”‘”‘))’ install –record ‘C:UserssajjanAppDataLocalTemppip-record-
vut086weinstall-record.txt’ –single-version-externally-managed –compile —
user –prefix= Check the logs for full command output.

2

Answers


  1. Try with this command on your anaconda prompt and try again for install rasa. I think this will solve your problem

    conda install -c conda-forge httptools
    
    Login or Signup to reply.
  2. 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,

    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].

    Then run pip install rasa_nlu, to successfully build the package.

    If Anaconda distribution is installed in your system, you can try running

    conda install -c conda-forge httptools
    

    then try to run the pip command,

    But it won’t work for all windows-python version combinations.Any time, building these kind of package requires visual c++.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search