소스 검색

Merge pull request #508 from exo-explore/pyver312

prio python 3.12
Alex Cheema 5 달 전
부모
커밋
22177af222
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      install.sh

+ 7 - 1
install.sh

@@ -1,5 +1,11 @@
 #!/bin/bash
 
-python3 -m venv .venv
+if command -v python3.12 &>/dev/null; then
+    echo "Python 3.12 is installed, proceeding with python3.12..."
+    python3.12 -m venv .venv
+else
+    echo "The recommended version of Python to run exo with is Python 3.12, but $(python3 --version) is installed. Proceeding with $(python3 --version)"
+    python3 -m venv .venv
+fi
 source .venv/bin/activate
 pip install -e .