0

I am trying to install rasa_core in my python by using !pip install rasa_core; command. But i am getting an error :

Below is the error :

Failed building wheel for Twisted The scripts freeze_graph.exe, saved_model_cli.exe, tensorboard.exe, tflite_convert.exe, toco.exe and toco_from_protos.exe are installed in 'C:\Users\user\AppData\Roaming\Python\Python36\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Command "c:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-fot9mu3e\\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-vp3wq_7u\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-install-fot9mu3e\Twisted\

Could anyone please help me.

PANDA
  • 137
  • 2
  • 9

2 Answers2

0

I suggest you to install it through miniconda as you have to do a lot of things manually to install Twisted whereas conda will take care of all the dependencies you need. So install miniconda first https://conda.io/docs/user-guide/install/index.html Then install the binary package python-dev if not install through the command: sudo apt-get install python3-dev then do : pip install Twisted pip install rasa_nlu or pip install rasa_core whatever you need

If you need tensorflow pipeline then first do conda install tensorflow then pip install rasa_nlu[tensorflow]

0

I faced the same issue and able to install rasa_core after resolving dependencies fast. Please try below:

  1. First install twisted

    pip install Twisted

  2. Then, install rasa_core

    pip install rasa_core

SUBHOJEET
  • 390
  • 1
  • 10