Failed building wheel for httptools in installing rasa in windows10

Failed building wheel for httptools

Running install for httptools … error Complete output from command c:\users\sandy\venv\scripts\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\sandy\AppData\Local\Temp\pip-build-ses1vrsw\httptools\’;f=getattr(tokenize, ‘open’, open)(file);’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record C:\Users\sandy\AppData\Local\Temp\pip-3hyck3cf-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\sandy\venv\include\site\python3.6\httptools: C:\Users\sandy\AppData\Local\Programs\Python\Python36\lib\distutils\ UserWarning: Unknown distribution option: ‘long_description_content_type’ warnings.warn(msg) running install running build running build_py creating build creating build\ creating build\\httptools copying -> build\\httptools creating build\\httptools\parser copying httptools\parser\ -> build\\httptools\parser copying httptools\ -> build\\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 ‘’ writing manifest file ‘httptools.egg-info\SOURCES.txt’ copying httptools\parser\parser.c -> build\\httptools\parser running build_ext building ‘httptools.parser.parser’ extension creating build\ creating build\\Release creating build\\Release\httptools creating build\\Release\httptools\parser creating build\\Release\vendor creating build\\Release\vendor\http-parser C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ic:\users\sandy\venv\include -IC:\Users\sandy\AppData\Local\Programs\Python\Python36\include -IC:\Users\sandy\AppData\Local\Programs\Python\Python36\include “-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\include” /Tchttptools/parser/parser.c /Fobuild\\Release\httptools/parser/parser.obj -O2 parser.c C:\Users\sandy\AppData\Local\Programs\Python\Python36\include\pyconfig.h(59): fatal error C1083: Cannot open include file: ‘io.h’: No such file or directory error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x64\cl.exe’ failed with exit status 2


Command “c:\users\sandy\venv\scripts\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\sandy\AppData\Local\Temp\pip-build-ses1vrsw\httptools\’;f=getattr(tokenize, ‘open’, open)(file);’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record C:\Users\sandy\AppData\Local\Temp\pip-3hyck3cf-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\sandy\venv\include\site\python3.6\httptools” failed with error code 1 in C:\Users\sandy\AppData\Local\Temp\pip-build-ses1vrsw\httptools\

im new baby to rasa and python please help with this error

Hey @sandy02 check this: Httptools error while installing Rasa

Hi, @JiteshGaikwad thanks, actually I followed the same video to install rasa but it shows same error…

Failed building wheel for httptools…

Command “c:\users\sandy\appdata\local\programs\python\python37\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\sandy\AppData\Local\Temp\pip-install-_dbphfhz\httptools\’;f=getattr(tokenize, ‘open’, open)(file);’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record C:\Users\sandy\AppData\Local\Temp\pip-record-orb03xbv\install-record.txt --single-version-externally-managed --compile” failed with error code 1 in C:\Users\sandy\AppData\Local\Temp\pip-install-_dbphfhz\httptools\

Are you working on ur own personal laptop or working through some system which has registry settings?

my own laptop … is there any settings problem related to this error

I also faced the same issue in windows 10 and after research, i found its a python installation issue in windows 10.

steps to resolve the issue:

  1. Please uninstall non-relavent python from windows 10.(else create python virtual environment).
  2. Please install chocolatey in windows 10 using - Installation link.
  3. Open cmd as admin and run below with specific python version choco install python3 --version 3.6.5 ref - Chocolatey Gallery | Python 3.x 3.6.5
  4. Verify your environment variable have a new Python installation path.
  5. open new cmd and type python and verify the version.
  6. on cmd run - pip install rasa.

it’s better to create a virtual environment and do development there and follow above steps. Go to new folder and open cmd . 7. pip3 install -U pip virtualenv (folder name). 8. type - .\venv\Scripts\activate. 9. pip install --upgrade pip.

Source - Install TensorFlow with pip  |  TensorFlow

Hi piyush, I have uninstalled the python from my windows system and have reinstalled in a virtual environment as said in the above steps. Still I have faced same issue as

C:\Python36\include\pyconfig.h(59): fatal error C1083: Cannot open include file: ‘io.h’: No such file or directory error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.24.28314\bin\HostX86\x64\cl.exe’ failed with exit status 2

I already have Visual studio 2019 app - Does this have any impact with the packages installed? Thanks kishore

Did you install visual studio required packages?

Please use bewlo link to resolve your issue.

For Linux:- Please follow the below steps-

  1. yum install
  2. yum install python36u python36u-devel python36u-pip
  3. python3.6 -m pip install httptools
  4. pip install rasa-x --extra-index-url

I believe you will not get any error after that.

Before installing RASA, create an python 3.5/3/6 environment with conda. Then Install httptools with-in that environment using

conda install -c conda-forge htttptools

Then install RASA with pip install rasa

httptools wheel file is now available on PyPi website. So it should not be a problem for Python 3.6, 3.7 and 3.8 users.

If you are using other versions of python then please do the following steps:

  1. Activate the venv of your project in command line.
  2. Set the INCLUDE and LIB variable from command line to your respective Windows kits folder:

set INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\shared

set LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\ucrt\x64

  1. In your accounts environment variable PATH set the following:

C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64

C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86

  1. Unzip the tar.gz file and inside it run python install

For clarity refer these links:


I have the following components installed via visual studio installer: “Microsoft.VisualStudio.Component.CoreEditor”, “Microsoft.VisualStudio.Workload.CoreEditor”, “Microsoft.VisualStudio.Component.Roslyn.Compiler”, “Microsoft.Component.MSBuild”, “Microsoft.VisualStudio.Component.TextTemplating”, “Microsoft.VisualStudio.Component.IntelliCode”, “Microsoft.Component.PythonTools”, “Microsoft.VisualStudio.Component.VC.CoreIde”, “Microsoft.VisualStudio.Component.Windows10SDK”, “Microsoft.VisualStudio.Component.VC.Tools.x86.x64”, “Microsoft.VisualStudio.Component.Graphics.Tools”, “Microsoft.VisualStudio.Component.VC.DiagnosticTools”, “Microsoft.VisualStudio.Component.Windows10SDK.18362”, “Microsoft.ComponentGroup.PythonTools.NativeDevelopment”, “Microsoft.VisualStudio.Component.VC.Redist.14.Latest”, “Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core”, “Microsoft.VisualStudio.Component.Windows10SDK.17134”, “Microsoft.VisualStudio.Component.Windows10SDK.16299”, “Microsoft.VisualStudio.Component.VC.v141.x86.x64”, “Microsoft.Component.VC.Runtime.UCRTSDK”, “Microsoft.VisualStudio.Component.VC.140”, “Microsoft.VisualStudio.Workload.NativeDesktop”, “Microsoft.VisualStudio.Workload.DataScience”