运行命令“streamlit run model.py”时出现streamlit错误 Streamlit 已安装。 这是显示的错误。
PS C:\Users\Project\ML\RAG> streamlit run .\model.py
streamlit : The term 'streamlit' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ streamlit run .\model.py
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (streamlit:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
可以使用命令“python -m Streamlit run .\model.py”解决上述错误
PS C:\Users\Project\ML\RAG> python -m streamlit run .\model.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://10.110.136.233:8501