Rasa model not trained

I am trying to install it in windows 10 pro using vscode. Python version==3.8.0 , Pip version==21.2.3 . After rasa init command this shows.

Training an initial model...
Traceback (most recent call last):
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The operation completed successfully.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\user\appdata\local\programs\python\python38\lib\runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\user\appdata\local\programs\python\python38\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\user\AppData\Local\Programs\Python\Python38\Scripts\rasa.exe\__main__.py", line 7, in <module>
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\rasa\__main__.py", line 117, in main
    cmdline_arguments.func(cmdline_arguments)
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\rasa\cli\scaffold.py", line 235, in run
    init_project(args, path)
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\rasa\cli\scaffold.py", line 130, in init_project
    print_train_or_instructions(args, path)
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\rasa\cli\scaffold.py", line 69, in print_train_or_instructions
    training_result = rasa.train(domain, config, training_files, output)
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\rasa\api.py", line 106, in train
    from rasa.model_training import train_async
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\rasa\model_training.py", line 22, in <module>
    from rasa.nlu.model import Interpreter
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\rasa\nlu\model.py", line 14, in <module>
    from rasa.nlu import components, utils
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\rasa\nlu\components.py", line 7, in <module>
    import rasa.utils.train_utils
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\rasa\utils\train_utils.py", line 39, in <module>
    from rasa.utils.tensorflow.callback import RasaTrainingLogger, RasaModelCheckpoint
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\rasa\utils\tensorflow\callback.py", line 5, in <module>
    import tensorflow as tf
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\__init__.py", line 40, in <module>
    from tensorflow.python.eager import context
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\eager\context.py", line 35, in <module>
    from tensorflow.python import pywrap_tfe
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\pywrap_tfe.py", line 28, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The operation completed successfully.


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

@Rishabhh17 you still having issue or you able to solve this by your own?

This is the error faced by me when I tried to install on Windows.

@Rishabhh17 As clearly I can see it’s a PowerShell and there is no conda environment, is you directly trying to install rasa? right?

Yes

@Rishabhh17 First you need to install Anaconda, then create conda environment for python 3.8 and then install rasa and rasa-sdk 2.8.1. Do it and do let me know are you able to install or not.

The approach you using is not best practise and if anything updated to system or you required to update some code for other project everything will be disturb.

Thank you so much @nik202 .It helps me a lot. Rasa gets installed with initial model, I want to code and run everything through vscode terminal how to do that?

@Rishabhh17 Please close this thread with the solution for other. @Rishabhh17 you just need to install VS code, add project in workspace, add terminal, active condo environment and run commands. You can add as many as terminal in VS code whilst using + sign.