[AI] 개발 환경 이동 @Windows11
2025.08.11
C: 에 만들고 설치한 venv와 open-webui, text-generation-webui 를 옮기려고 함.
개발환경이 문제가 아니라 모델 파일이 커서 결국 다 같이 이동.
🧠 기본 개념
venv는 가상환경을 생성할 때 해당 경로를 기준으로 Python 실행 파일, 라이브러리, 스크립트 등을 설정합니다. 이 경로 정보는 가상환경 내부의 파일들에 하드코딩되어 있기 때문에, 단순히 디렉토리를 옮기면 문제가 생길 수 있어요.
⚠️ 이동 시 발생할 수 있는 문제
- Scripts/activate.bat 또는 bin/activate 내부 경로가 이전 디렉토리로 설정되어 있음
- pyvenv.cfg 파일에 원래 경로가 기록되어 있음
- 일부 패키지가 경로를 참조할 수 있음
✅ 안전하게 이동하는 방법
1. 가상환경을 새 위치에 새로 생성
가장 안전한 방법은 새 디렉토리에서 새로 venv를 만들고, 기존 환경에서 설치한 패키지를 복사하는 방식입니다:
# 기존 환경에서 패키지 목록 저장
<old_env>\Scripts\activate
pip freeze > requirements.txt
# 새 디렉토리에서 새 환경 생성
python -m venv <new_env>
<new_env>\Scripts\activate
pip install -r requirements.txt
D: 가상환경 생성, 액티베이션, 새로 설치
uv venv .venv
.venv\Scripts\activate
uv pip install -r requirements.txt
버전 충돌이 너무 많다.
그냥 open-webui, text-generation-webui를 따로 따로 설치
중간에 생성된 파일을 보기 위해 vim 을 실행 안된다 -> 설치
Set-ExecutionPolicy Bypass -Scope Process -Force; `
[System.Net.ServicePointManager]::SecurityProtocol = `
[System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
위에는 Chocolatey ?
choco install vim -y
requirments.txt 파일 내용
absl-py==2.3.1
accelerate==1.8.1
aiocache==0.12.3
aiofiles==23.2.1
aiohappyeyeballs==2.6.1
aiohttp==3.11.11
aiosignal==1.4.0
alembic==1.14.0
altair==5.5.0
annotated-types==0.7.0
anthropic==0.61.0
anyio==4.10.0
appdirs==1.4.4
apscheduler==3.10.4
argon2-cffi==23.1.0
argon2-cffi-bindings==25.1.0
asgiref==3.8.1
async-timeout==5.0.1
attrs==25.3.0
authlib==1.4.1
av==15.0.0
azure-ai-documentintelligence==1.0.2
azure-core==1.35.0
azure-identity==1.20.0
azure-storage-blob==12.24.1
backoff==2.2.1
bcrypt==4.3.0
beautifulsoup4==4.13.4
bidict==0.23.1
bitarray==3.6.0
bitsandbytes==0.46.1
black==25.1.0
blinker==1.9.0
boto3==1.35.53
botocore==1.35.99
brotli==1.1.0
build==1.3.0
cachetools==5.5.2
certifi==2025.8.3
cffi==1.17.1
chardet==5.2.0
charset-normalizer==3.4.2
chroma-hnswlib==0.7.6
chromadb==0.6.3
click==8.2.1
colbert-ai==0.2.21
colorama==0.4.6
coloredlogs==15.0.1
comfyui-embedded-docs==0.2.4
comfyui-frontend-package==1.24.4
comfyui-workflow-templates==0.1.52
contourpy==1.3.3
cramjam==2.11.0
cryptography==45.0.6
ctranslate2==4.6.0
cycler==0.12.1
dataclasses-json==0.6.7
datasets==4.0.0
ddgs==9.0.0
defusedxml==0.7.1
dill==0.3.8
distro==1.9.0
dnspython==2.7.0
docker==7.1.0
docx2txt==0.8
durationpy==0.10
ecdsa==0.19.1
einops==0.8.1
elastic-transport==8.17.1
elasticsearch==9.0.1
emoji==2.14.1
et-xmlfile==2.0.0
events==0.5
exllamav2 @ https://github.com/turboderp-org/exllamav2/releases/download/v0.3.2/exllamav2-0.3.2+cu124.torch2.6.0-cp311-cp311-win_amd64.whl
exllamav3 @ https://github.com/oobabooga/exllamav3/releases/download/v0.0.5/exllamav3-0.0.5+cu124.torch2.6.0-cp311-cp311-win_amd64.whl
fake-useragent==2.1.0
fastapi==0.112.4
faster-whisper==1.1.1
fastparquet==2024.11.0
ffmpy==0.6.1
filelock==3.18.0
filetype==1.2.0
firecrawl-py==1.12.0
flash-attn @ https://github.com/kingbri1/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu124torch2.6.0cxx11abiFALSE-cp311-cp311-win_amd64.whl
flask==3.1.1
flask-cloudflared==0.0.14
flatbuffers==25.2.10
fonttools==4.59.0
formatron==0.5.0
fpdf2==2.8.2
frozendict==2.4.6
frozenlist==1.7.0
fs==2.4.16
fsspec==2025.3.0
ftfy==6.2.3
gcp-storage-emulator==2024.8.3
general-sam==1.0.2
git-python==1.0.3
gitdb==4.0.12
gitpython==3.1.45
google-ai-generativelanguage==0.6.15
google-api-core==2.25.1
google-api-python-client==2.178.0
google-auth==2.40.3
google-auth-httplib2==0.2.0
google-auth-oauthlib==1.2.2
google-cloud-core==2.4.3
google-cloud-storage==2.19.0
google-crc32c==1.7.1
google-genai==1.15.0
google-generativeai==0.8.5
google-resumable-media==2.7.2
googleapis-common-protos==1.63.2
gradio==4.37.2
gradio-client==1.0.2
greenlet==3.1.1
grpcio==1.67.1
grpcio-status==1.67.1
h11==0.16.0
h2==4.2.0
hpack==4.1.0
html2text==2025.4.15
html5lib==1.1
httpcore==1.0.9
httplib2==0.22.0
httptools==0.6.4
httpx==0.28.1
httpx-sse==0.4.1
huggingface-hub==0.34.3
humanfriendly==10.0
hyperframe==6.1.0
idna==3.10
importlib-metadata==8.7.0
importlib-resources==6.5.2
iniconfig==2.1.0
isodate==0.7.2
itsdangerous==2.2.0
jinja2==3.1.6
jiter==0.10.0
jmespath==1.0.1
joblib==1.5.1
jsonpatch==1.33
jsonpointer==3.0.0
jsonschema==4.25.0
jsonschema-specifications==2025.4.1
kbnf==0.4.2
kiwisolver==1.4.8
kornia==0.8.1
kornia-rs==0.1.9
kubernetes==33.1.0
langchain==0.3.26
langchain-community==0.3.26
langchain-core==0.3.72
langchain-text-splitters==0.3.9
langdetect==1.0.9
langfuse==2.44.0
langsmith==0.4.12
ldap3==2.9.1
llama-cpp-binaries @ https://github.com/oobabooga/llama-cpp-binaries/releases/download/v0.33.0/llama_cpp_binaries-0.33.0+cu124-py3-none-win_amd64.whl
loguru==0.7.3
lxml==6.0.0
mako==1.3.10
marisa-trie==1.2.1
markdown==3.7
markdown-it-py==3.0.0
markupsafe==2.1.5
marshmallow==3.26.1
matplotlib==3.10.5
mdurl==0.1.2
mmh3==5.2.0
moto==5.1.9
mpmath==1.3.0
msal==1.33.0
msal-extensions==1.3.1
multidict==6.6.3
multiprocess==0.70.16
mypy-extensions==1.1.0
narwhals==2.0.1
nest-asyncio==1.6.0
networkx==3.5
ninja==1.11.1.4
nltk==3.9.1
numpy==2.2.6
oauthlib==3.3.1
olefile==0.47
onnxruntime==1.20.1
open-webui==0.6.18
openai==1.99.1
opencv-python==4.11.0.86
opencv-python-headless==4.11.0.86
openpyxl==3.1.5
opensearch-py==2.8.0
opentelemetry-api==1.36.0
opentelemetry-exporter-otlp-proto-common==1.36.0
opentelemetry-exporter-otlp-proto-grpc==1.36.0
opentelemetry-instrumentation==0.57b0
opentelemetry-instrumentation-asgi==0.57b0
opentelemetry-instrumentation-fastapi==0.57b0
opentelemetry-proto==1.36.0
opentelemetry-sdk==1.36.0
opentelemetry-semantic-conventions==0.57b0
opentelemetry-util-http==0.57b0
orjson==3.11.1
overrides==7.7.0
packaging==23.2
pandas==2.2.3
passlib==1.7.4
pathspec==0.12.1
peewee==3.18.1
peewee-migrate==1.12.2
peft==0.16.0
pgvector==0.4.0
pillow==10.4.0
pinecone==6.0.2
pinecone-plugin-interface==0.0.7
platformdirs==4.3.8
playwright==1.49.1
pluggy==1.6.0
portalocker==2.10.1
posthog==5.4.0
primp==0.15.0
propcache==0.3.2
proto-plus==1.26.1
protobuf==5.29.5
psutil==7.0.0
psycopg2-binary==2.9.9
py-partiql-parser==0.6.1
pyarrow==21.0.0
pyasn1==0.4.8
pyasn1-modules==0.4.1
pyclipper==1.3.0.post6
pycparser==2.22
pycrdt==0.12.25
pydantic==2.8.2
pydantic-core==2.20.1
pydantic-settings==2.10.1
pydub==0.25.1
pyee==12.0.0
pygments==2.19.2
pyjwt==2.10.1
pymdown-extensions==10.14.2
pymilvus==2.5.0
pymongo==4.14.0
pymysql==1.1.1
pypandoc==1.15
pyparsing==3.2.3
pypdf==4.3.1
pypdf2==3.0.1
pypika==0.48.9
pyproject-hooks==1.2.0
pyreadline3==3.5.4
pytest==8.3.5
pytest-docker==3.1.2
python-dateutil==2.9.0.post0
python-docx==1.1.2
python-dotenv==1.1.1
python-engineio==4.12.2
python-iso639==2025.2.18
python-jose==3.4.0
python-magic==0.4.27
python-multipart==0.0.20
python-oxmsg==0.0.2
python-pptx==1.0.2
python-socketio==5.13.0
pytube==15.0.0
pytz==2025.2
pywin32==311
pyxlsb==1.0.10
pyyaml==6.0.2
qdrant-client==1.14.3
rank-bm25==0.2.2
rapidfuzz==3.13.0
rapidocr-onnxruntime==1.4.4
redis==6.3.0
referencing==0.36.2
regex==2025.7.34
requests==2.32.4
requests-oauthlib==2.0.0
requests-toolbelt==1.0.0
responses==0.25.7
restrictedpython==8.0
rich==13.9.4
rpds-py==0.27.0
rsa==4.9.1
ruff==0.12.7
s3transfer==0.10.4
safetensors==0.5.3
scikit-learn==1.7.1
scipy==1.16.1
semantic-version==2.10.0
sentence-transformers==4.1.0
sentencepiece==0.2.0
sentry-sdk==2.34.1
setuptools==80.9.0
shapely==2.1.1
shellingham==1.5.4
simple-websocket==1.1.0
six==1.17.0
smmap==5.0.2
sniffio==1.3.1
socksio==1.0.0
soundfile==0.13.1
soupsieve==2.7
spandrel==0.4.1
sqlalchemy==2.0.38
sse-starlette==1.6.5
starlette==0.38.6
starlette-compress==1.6.0
sympy==1.13.1
tenacity==9.1.2
tencentcloud-sdk-python==3.0.1336
tensorboard==2.20.0
tensorboard-data-server==0.7.2
threadpoolctl==3.6.0
tiktoken==0.10.0
tokenizers==0.21.4
tomlkit==0.12.0
torch==2.5.1+cu121
torchaudio==2.5.1+cu121
torchsde==0.2.6
torchvision==0.20.1+cu121
tqdm==4.67.1
trampoline==0.1.2
transformers==4.55.0
triton-windows==3.2.0.post19
typer==0.16.0
typing-extensions==4.14.1
typing-inspect==0.9.0
typing-inspection==0.4.1
tzdata==2025.2
tzlocal==5.3.1
ujson==5.10.0
unstructured==0.16.17
unstructured-client==0.42.1
uritemplate==4.2.0
urllib3==2.5.0
uvicorn==0.34.2
validators==0.35.0
wandb==0.21.0
watchfiles==1.1.0
wcwidth==0.2.13
webencodings==0.5.1
websocket-client==1.8.0
websockets==11.0.3
werkzeug==3.1.3
win32-setctime==1.2.0
wrapt==1.17.2
wsproto==1.2.0
xlrd==2.0.1
xlsxwriter==3.2.5
xmltodict==0.14.2
xxhash==3.5.0
yarl==1.20.1
youtube-transcript-api==1.1.0
zipp==3.23.0
zstandard==0.23.0