강의

멘토링

커뮤니티

Inflearn Community Q&A

tkddbs72791049's profile image
tkddbs72791049

asked

Creating a Python Web App Using Streamlit

Quickly create web apps with Streamlit - Installation, configuration, and practice files

visual studio 에서 terminal 부분에서 오류가 있습니다.

Resolved

Written on

·

315

0

 anaconda prompt 에서는 잘되는데

 

visual studio 터미널에서 하면 되지 않네요...

streamlit

Answer 1

0

learnaday님의 프로필 이미지
learnaday
Instructor

Visual Studio Code 는 PowerShell 을 사용해서 그렇습니다. 터미널 맨 앞에 붙은 'PS' 가 파워셀의 약어입니다. 1번 스크린샷은 CMD (커멘트 창) 이고요 PowerShell 은 CMD 와는 약간 차이가 있어요. ls 명령어는 linux 기반 shell 명령어 인데 powershell 은 linux 명령어가 통하지만 cmd 는 안됩니다. 윈도우 전용 명령어만 먹습니다.

정리하자만, anaconda 를 윈도우에서 설치하면 cmd 에서는 동작하지만 powershell 에 자동 등록되는 것이 아니라서 별도의 설정을 해줘야 동작합니다.그래서 Visual Studio Code 의 터미널에서 동작하지 않습니다.

결론은 cmd 창에서 streamlit 명령어를 실행하면 됩니다. 그리고 가상환경에서 설치했다면 활성화 후 실행하셔야 합니다~ 감사합니다!

tkddbs72791049's profile image
tkddbs72791049

asked

Ask a question