Rasa: pip3 install rasa_core Failed building wheel for Twisted

Created on 15 May 2018  Â·  8Comments  Â·  Source: RasaHQ/rasa

Rasa Core version: N/A

Python version: 3.6.5

Operating system: Win10

Issue: I am trying to install rasa_core on windows from cmd but get the following error:

pip3 install rasa_core
[...]
building 'twisted.test.raiser' extension
  creating build\temp.win32-3.6
  creating build\temp.win32-3.6\Release
  creating build\temp.win32-3.6\Release\src
  creating build\temp.win32-3.6\Release\src\twisted
  creating build\temp.win32-3.6\Release\src\twisted\test
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -Ic:\users\<user>\appdata\local\programs\python\python36-32\include -Ic:\users\<user>\appdata\local\programs\python\python36-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" /Tcsrc/twisted/test/raiser.c /Fobuild\temp.win32-3.6\Release\src/twisted/test/raiser.obj
  raiser.c
  c:\users\<user>\appdata\local\programs\python\python36-32\include\pyconfig.h(222): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.12.25827\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

  ----------------------------------------
  Failed building wheel for Twisted
  Running setup.py clean for Twisted

-then much further down another error message appears (pip3 install is still running)

creating build\temp.win32-3.6\Release\src\twisted
    creating build\temp.win32-3.6\Release\src\twisted\test
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -Ic:\users\<user>\appdata\local\programs\python\python36-32\include -Ic:\users\<user>\appdata\local\programs\python\python36-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" /Tcsrc/twisted/test/raiser.c /Fobuild\temp.win32-3.6\Release\src/twisted/test/raiser.obj
    raiser.c
    c:\users\<user>\appdata\local\programs\python\python36-32\include\pyconfig.h(222): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.12.25827\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "c:\users\<user>\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-install-fgvw1ipy\\Twisted\\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\<user>\AppData\Local\Temp\pip-record-fz7a5see\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\az27355\AppData\Local\Temp\pip-install-fgvw1ipy\Twisted\

Using pip version 10.0.1

Most helpful comment

It turns out I needed to install a c compiler.
I just run apt-get update && apt-get install build-essential
Then I can pip install rasa_core and nlu.

random guide

All 8 comments

im getting the same error im using python 3.6 when i try and install channels i get that same error

Have you seen this stack overflow issuse? https://stackoverflow.com/questions/46713653/installing-rasa-on-windows that might help

@Krogsager I believe you've solved this issue, @djangorobert are you still having issues or can we close this issue?

I have not retried I’ve been using the old virtual end way for the time
being

On Tue, Jul 17, 2018 at 9:13 AM Akela Drissner-Schmid <
[email protected]> wrote:

@Krogsager https://github.com/Krogsager I believe you've solved this
issue, @djangorobert https://github.com/djangorobert are you still
having issues or can we close this issue?

—
You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
https://github.com/RasaHQ/rasa_core/issues/467#issuecomment-405596751,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARSyoDVZLGWGXGfQxVea0n5mdKvsy5e1ks5uHfEjgaJpZM4T_bt5
.

@akelad I didn't exactly solve the issue. I abandoned Windows and started developing on Linux instead.

This will work perfectly if you are using python version 3.5

downgrade to python version 3.5, that's what i did and it got installed smoothly.

It turns out I needed to install a c compiler.
I just run apt-get update && apt-get install build-essential
Then I can pip install rasa_core and nlu.

random guide

Was this page helpful?
0 / 5 - 0 ratings