最終更新 10 months ago

這段 Bash 指令用於啟動 Python 虛擬環境 (venv)。虛擬環境能夠隔離 Python 依賴,避免與系統環境發生衝突。執行後,Shell 會進入 .venv 目錄下的虛擬環境,使後續的 Python 執行與套件管理都發生在該環境中。

timmy revised this gist 10 months ago. Go to revision

No changes

timmy revised this gist 1 year ago. Go to revision

1 file changed, 2 insertions

activate_venv.sh(file created)

@@ -0,0 +1,2 @@
1 + #!/bin/bash
2 + source .venv/bin/activate
Newer Older