파워셸 실행
cd C:\openwebui
# 1. 가상환경 생성 (폴더명을 .venv로 지정)
python -m venv .venv
# 2. 가상환경 활성화
# Windows (PowerShell) 환경일 때:
.venv/Scripts/Activate.ps1
# Mac / Linux / Git Bash 환경일 때:
source .venv/bin/activate
가상환경이 활성화되면 터미널 프롬프트 앞에 (.venv) 표시가 붙는다.# 1. 가상환경 생성 (폴더명을 .venv로 지정)
python -m venv .venv
# 2. 가상환경 활성화
# Windows (PowerShell) 환경일 때:
.venv/Scripts/Activate.ps1
# Mac / Linux / Git Bash 환경일 때:
source .venv/bin/activate
2. Open WebUI 설치 (pip)
가상환경이 활성화된 상태에서 open-webui 패키지를 설치한다.
pip install open-webui
아래 에러가 발생했다.
Collecting open-webui
ERROR: Could not find a version that satisfies the requirement open-webui (from versions: none)
ERROR: No matching distribution found for open-webui
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
ERROR: Could not find a version that satisfies the requirement open-webui (from versions: none)
ERROR: No matching distribution found for open-webui
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
에러 해결하기 위해 새 파워셸 열고 아래 명령어 입력
python -m pip install --upgrade pip
결과
Requirement already satisfied: pip in c:\users\thkmo\appdata\local\programs\python\python37-32\lib\site-packages (24.0)
파이썬 다시 깔아야한다.
python-3.12.10-amd64.exe 다운로드 및 설치함.
파이썬 버전확인
python --version
Python 3.12.10
Python 3.12.10
파이썬 버전확인은 가상환경이 켜진 상태에서 입력도 가능하다. 즉, 가상환경의 파이썬 버전 확인이 가능함.
python --version
다 끄고 다시 파워셸 열고 가상환경 만들기부터(완전 처음부터) 다시 해야한다.