ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [Python][Streamlit] 데이터 기반 어플 제작 1
    기타 2022. 5. 26. 00:08

    1. Streamlit Framework 설치

    pip install streamlit

     

    - 오류

    Fatal error in launcher: Unable to create process using 
    '"c:\users\???\appdata\local\programs\python\python36\python.exe"  
    "C:\Users\???\AppData\Local\Programs\Python\Python36\Scripts\pip.exe" 
    install streamlit': ??? ??? ?? ? ????.

     나의 경우에는 사용자의 이름이 한글이어서 경로를 인식하지 못하여 발생한 문제라고 생각된다.

     

    - 해결

    아래와 같이 코드 앞에 'python -m'을 붙여주면 해결된다.

    python -m pip install streamlit

    2. Framework 실행

    streamlit hello

    위 코드를 실행하면 아래와 같이 email을 작성하라는 빈칸이 나오는데 그냥 엔터를 치면 넘어간다.

     If you're one of our development partners or you're interested in getting
      personal technical support or Streamlit updates, please enter your email
      address below. Otherwise, you may leave the field blank.

    아래의 글자가 나오고 브라우저에 웹페이지가 실행된다.

      Welcome to Streamlit. Check out our demo in your browser.
    
      Local URL: http://localhost:8501
      Network URL: http://000.000.0.0:8501
    
      Ready to create your own Python apps super quickly?
      Head over to https://docs.streamlit.io
    
      May you create awesome apps!

    실행되는 웹페이지는 Choose a demo를 조작하면 아래의 Demo를 보여준다.

    • Animation Demo

    • Plotting Demo

    • Mapping Demo

    • DataFrame Demo

    댓글

Designed by Tistory.