Do we need to create a new environment for every project?

For each new project, do I need to create a new Python environment and install Rasa in the newly built environment?

No, unless you want different versions of Rasa or any other library you use in the environments

Thanks ChrisRahme. The problem is, when I create a new project (in a new folder) and run it in the python environment that was built for another project, the rasa server is up and running but when I type a message and press enter it freezes and shows error like below -

2022-05-11 16:11:41 ERROR    asyncio  - Task exception was never retrieved
future: <Task finished coro=<SignalRouter._dispatch() done, defined at C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\sanic\signals.py:121> exception=RuntimeError('This event loop is already running')>
Traceback (most recent call last):
  File "C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\sanic\signals.py", line 161, in _dispatch
    retval = await maybe_coroutine
  File "C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\sanic\app.py", line 1581, in run_delayed_task
    await prepped
  File "C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\rasa\core\run.py", line 138, in run_cmdline_io
    request_timeout=request_timeout,
  File "C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\rasa\core\channels\console.py", line 185, in record_messages
    text = _get_user_input(previous_response)
  File "C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\rasa\core\channels\console.py", line 110, in _get_user_input
    style=Style([("qmark", "#b373d6"), ("", "#b373d6")]),
  File "C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\questionary\question.py", line 70, in ask
    return self.unsafe_ask(patch_stdout)
  File "C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\questionary\question.py", line 92, in unsafe_ask
    return self.application.run()
  File "C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\prompt_toolkit\application\application.py", line 892, in run
    self.run_async(pre_run=pre_run, set_exception_handler=set_exception_handler)
  File "C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\asyncio\base_events.py", line 555, in run_until_complete
    self.run_forever()
  File "C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\asyncio\base_events.py", line 510, in run_forever
    raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running.

How can I solve this?

Thanks ChrisRahme. The problem is, when I create a new project (in a new folder) and run it in the python environment that was built for another project, the rasa server is up and running but when I type a message and press enter it freezes and shows error like below -

2022-05-11 16:11:41 ERROR asyncio - Task exception was never retrieved future: <Task finished coro=<SignalRouter._dispatch() done, defined at C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\sanic\signals.py:121> exception=RuntimeError(‘This event loop is already running’)> Traceback (most recent call last): File “C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\sanic\signals.py”, line 161, in _dispatch retval = await maybe_coroutine File “C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\sanic\app.py”, line 1581, in run_delayed_task await prepped File “C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\rasa\core\run.py”, line 138, in run_cmdline_io request_timeout=request_timeout, File “C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\rasa\core\channels\console.py”, line 185, in record_messages text = _get_user_input(previous_response) File “C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\rasa\core\channels\console.py”, line 110, in _get_user_input style=Style([(“qmark”, “#b373d6”), ("", “#b373d6”)]), File “C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\questionary\question.py”, line 70, in ask return self.unsafe_ask(patch_stdout) File “C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\questionary\question.py”, line 92, in unsafe_ask return self.application.run() File “C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\site-packages\prompt_toolkit\application\application.py”, line 892, in run self.run_async(pre_run=pre_run, set_exception_handler=set_exception_handler) File “C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\asyncio\base_events.py”, line 555, in run_until_complete self.run_forever() File “C:\Users\z5058566\Anaconda3\envs\installingrasa\lib\asyncio\base_events.py”, line 510, in run_forever raise RuntimeError(‘This event loop is already running’) RuntimeError: This event loop is already running.

How can I solve this?

Which command gives you this error?