相关文章推荐
满身肌肉的凉面  ·  VBA ...·  1 年前    · 
坏坏的海龟  ·  map | 微信开放文档·  1 年前    · 
烦恼的鸵鸟  ·  物件導向程式設計·  1 年前    · 
有腹肌的鸡蛋  ·  css ...·  2 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

How do I go around this error am getting while trying to run a file on streamlit using streamlit run

Ask Question

This is what I am getting:

C:\Users\Imai040>streamlit run "C:/Users/Imai040/PycharmProjects/stock prediction/main.py" Fatal error in launcher: Unable to create process using '"c:\programdata\anaconda3\python.exe" "C:\Users\Imai040\AppData\Roaming\Python\Python38\Scripts\streamlit.exe" run "C:/Users/Imai040/PycharmProjects/stock prediction/main.py"': The system cannot find the file specified.

If you're using Windows OS, you may try the steps below:

  • First, you need to download Anaconda: https://www.anaconda.com/

  • Open the Anaconda PowerShell Prompt and type the following:

    conda list

    pip uninstall streamlit

  • Create a new environment, and test out the following:

    pip install streamlit

    streamlit hello

  • Finally, you can test out streamlit on your code, replace your_app with the actual name of your file. Make sure you are in the same directory as your source code file.

    streamlit run your_app.py

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question . Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers .

  •