본문 바로가기
Coding/Python

[Python & FastAPI] 맥os에서 uvicorn 명령어 에러 해결 방법 !! (macOS - command not found: uvicorn)

by 포스트it 2023. 9. 1.
반응형

 

[Python & FastAPI] 맥os에서 uvicorn 명령어 에러 해결 방법 !! (macOS - command not found: uvicorn)

윈도우에선 분명 잘 되던 명령어 였는데 맥os에서 실행하니 에러가 났다.

패키지도 잘 설치했는데 uvicorn 을 찾질 못한다는 command not found: uvicorn 이라는 메세지였다.

검색해보니 윈도우랑 살짝 명령어가 달라서 찾질 못했던 거였고,

아래처럼 명령어를 입력하니 잘 작동 되었다.

$ python3 -m uvicorn main:app --reload --port 5050

 

 

728x90
반응형

댓글