ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement torch==2.1.0 (from versions: 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0, 2.7.0, 2.7.1, 2.8.0)
ERROR: No matching distribution found for torch==2.1.0
<issue 이유>
파이썬 버전 3.12.0에는 위 torch 버전이 안 맞음
<해결책>
# --- Python 버전에 따른 torch 조건부 ---
# Py3.12 이상은 torch 2.2+ 필요 (안정 권장: 2.4.1)
torch==2.4.1; python_version >= "3.12"
# Py3.11 이하는 기존 값을 유지하고 싶다면(선택)
torch==2.1.0; python_version < "3.12"