我想尝试一下是否能够在PowerShell上的cmd上运行已经运行的命令。如果我尝试使用cmd执行此命令,则效果很好。但是当他用Powershell做到这一点时,我得到了:
>python -m rasa_core.train interactive -o models/dialogue -d domain.yml -c policies.yml -s data/stories.md --nlu models/current/nlu --endpoints endpoints.yml
...
Bot loaded. Visualisation at http://localhost:5005/visualization.html.
Type a message and press enter (press 'Ctr-c' to exit).
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 0%| | 0/18 [00:00<?, ?it/s, # trackers=1]
Processed Story Blocks: 100%|##########| 18/18 [00:00<00:00, 643.13it/s, # trackers=1]
2019-04-12 05:17:31
ERROR
rasa_core.training.interactive
-
An exception occurred while recording messages.
Traceback (most recent call last):
File "C:\Users\antoi\Documents\Programming\Nathalie\18_2_2019\starter-pack-rasa-stack\staenv\lib\site-packages\rasa_core\training\i
nteractive.py", line 1283, in record_messages
_enter_user_message(sender_id, endpoint)
File "C:\Users\antoi\Documents\Programming\Nathalie\18_2_2019\starter-pack-rasa-stack\staenv\lib\site-packages\rasa_core\training\i
nteractive.py", line 1131, in _enter_user_message
lambda a: not a["message"])
File "C:\Users\antoi\Documents\Programming\Nathalie\18_2_2019\starter-pack-rasa-stack\staenv\lib\site-packages\rasa_core\training\i
nteractive.py", line 307, in _ask_questions
answers = prompt(questions)
File
"C:\Users\antoi\Documents\Programming\Nathalie\18_2_2019\starter-pack-rasa-stack\staenv\lib\site-packages\PyInquirer\prompt.py",
line 75, in prompt
eventloop=eventloop)
File "C:\Users\antoi\Documents\Programming\Nathalie\18_2_2019\starter-pack-rasa-stack\staenv\lib\site-packages\prompt_toolkit\short
cuts.py", line 576, in run_application
output=create_output(true_color=true_color))
File "C:\Users\antoi\Documents\Programming\Nathalie\18_2_2019\starter-pack-rasa-stack\staenv\lib\site-packages\prompt_toolkit\short
cuts.py", line 118, in create_output
return Win32Output(stdout)
File "C:\Users\antoi\Documents\Programming\Nathalie\18_2_2019\starter-pack-rasa-stack\staenv\lib\site-packages\prompt_toolkit\termi
nal\win32_output.py", line 80, in __init__
info = self.get_win32_screen_buffer_info()
File "C:\Users\antoi\Documents\Programming\Nathalie\18_2_2019\starter-pack-rasa-stack\staenv\lib\site-packages\prompt_toolkit\termi
nal\win32_output.py", line 172, in get_win32_screen_buffer_info
raise NoConsoleScreenBufferError
prompt_toolkit.terminal.win32_output.NoConsoleScreenBufferError: No Windows console found. Are you running cmd.exe?
为什么有这么多差异?如何补救?