streamlit 出现错误 -“无法识别‘streamlit’”以及如何解决该问题

问题描述 投票:0回答:1

运行命令“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
streamlit
1个回答
0
投票

可以使用命令“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

© www.soinside.com 2019 - 2024. All rights reserved.