- Install Git Bash.
- Make sure you check any checkboxes asking if you want to add
Git
to yourSystem PATH
.
- Make sure you check any checkboxes asking if you want to add
- Open PowerShell and run
Get-Command git
. TheSource
column should say something likeC:\Program Files\Git\cmd\git.exe
. If it doesn't then redo the first step, since you didn't installGit
and add it to yourSystem PATH
properly. cd
wherever you want to clone this repo, then rungit clone https://github.com/MBetters/mk3.git
, thencd
into this repo (cd mk3
).- Run
python -m venv venv
-m venv
means run the VirtualEnv module- The
venv
at the end is the name of the VirtualEnv to create. Calling itvenv
isn't very creative since that's the name of thevenv
module, but it's clean.
- Run PowerShell as an Administrator (by right-clicking it and clicking
Run as Administrator
), then runSet-ExecutionPolicy -ExecutionPolicy Unrestricted
. At the prompt, sayA
and hit Enter. This will allow.\venv\Scripts\Activate.ps1
to run in PowerShell later. - Install VS Code.
- Open VS Code, do
File
-->Open Folder...
, and navigate to themk3
folder and select it. VS Code should open this folder. - In VS Code, hit
Ctrl + Shift + Backtick
(the backtick key can be found to the left of the1
key on your keyboard). That should open a new "Integrated Terminal" at the bottom of your VS Code window. - The Integrated Terminal should have automatically "activated" the
venv
VirtualEnv, meaning you should see(venv)
at the beginning of the terminal's prompt.- SIDENOTE 1: This means commands like
python
will usevenv\Scripts\python.exe
instead of something likeC:\Python38\python.exe
. You can verify this by doingwhere python
in the Integrated Terminal. Thevenv
'spython.exe
should be the first one on the list. - SIDENOTE 2: The same thing should happen when you run
where pip
. Note thatpip
is just a Python package installer. - SIDENOTE 3: From now on, run all commands for this project in the Integrated Terminal with
venv
activated. If you want to use PowerShell instead, then just remember to firstcd
into this repo's directory, then run.\venv\Scripts\Activate.ps1
.
- SIDENOTE 1: This means commands like
- Upgrade
pip
:python -m pip install --upgrade pip
- Install all requirements:
pip install -r requirements.txt