이쯤에서 다시 나의 기본 환경 구성 정의를 해보겠다.
기본 OS는 항상 리눅스. ( ubuntu 24.04LTS , 윈도우에서는 WSL이용 )
파이썬은 패키지관리 + 파이썬 설치에도 uv 를 이용하자.
1. uv 설치
https://docs.astral.sh/uv/getting-started/installation/
Installation | uv
Use curl to download the script and execute it with sh: $ curl -LsSf https://astral.sh/uv/install.sh | sh If your system doesn't have curl, you can use wget: $ wget -qO- https://astral.sh/uv/install.sh | sh Request a specific version by including it in the
docs.astral.sh
curl -LsSf https://astral.sh/uv/install.sh | sh
2. uv를 이용해서 파이썬 설치
https://docs.astral.sh/uv/guides/install-python/#getting-started
Installing and managing Python | uv
Introduction Guides If Python is already installed on your system, uv will detect and use it without configuration. However, uv can also install and manage Python versions. uv automatically installs missing Python versions as needed — you don't need to i
docs.astral.sh
파이썬은 나흐 현재 기준인 3.12로 설치
uv python install 3.12 --default
3. 프로젝트를 위한 폴더생성 그리고 셋팅
mkdir sample-project
cd sample-project
uv init
uv add lanchain streamlit # 필요 패키지 설치
uv run main.py # 이렇게 실행하면 알아서 가상환경에서 실행하는 효과
uv run streamlit run app.py # 그래서 스트림릿은 이렇게 실행해야함!
올해는 AI, AI Agent 중심으로 공부를 많이 할듯...