Setup Python3 virtual environment
This commit is contained in:
13
src/setup_venv.cmd
Normal file
13
src/setup_venv.cmd
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
@echo off
|
||||||
|
REM Create Python virtual environment named "venv"
|
||||||
|
python -m venv venv
|
||||||
|
|
||||||
|
REM Activate the virtual environment
|
||||||
|
call venv\Scripts\activate.bat
|
||||||
|
|
||||||
|
REM Upgrade pip
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
|
||||||
|
REM Install dependencies
|
||||||
|
pip install mutagen
|
||||||
|
|
12
src/setup_venv.ps1
Normal file
12
src/setup_venv.ps1
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Create Python virtual environment named "venv"
|
||||||
|
python -m venv venv
|
||||||
|
|
||||||
|
# Activate the virtual environment
|
||||||
|
& .\venv\Scripts\Activate.ps1
|
||||||
|
|
||||||
|
# Upgrade pip
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
pip install mutagen
|
||||||
|
|
Reference in New Issue
Block a user