Project Homepage / Setup Instructions (Windows)
This guide takes you from a fresh install of Windows to having the project running.
The steps involved are:
-
Install Python
3.6.7
via official installer.-
Click here to download the installer.
OR
-
View other installation options on the python website.
-
-
Verify that the install was successful with
py -3.6 --version
:> py -3.6 --version 3.6.7
There are two options:
- Install dependencies globally
- Create an environment
If you are not a Python power user, it is recommended not to use a virtual environment (since it is complicated), and use Option 1 — Install dependencies globally.
If you have mutliple Python projects and want to keep the dependencies isolated, you may want to use a virtual environment. Check out the documentation) for more information.
-
Navigate to the project root directory (
...\paper-ecg\
) and run:py -3.6 -m pip install --upgrade pip py -3.6 -m pip install -r requirements.txt
Now, running fbs run
should build and run the project. If that doesn't work, try py -3.6 -m fbs run
.
-
Navigate to the project root directory (
...\paper-ecg\
) and run -
Create a virtual environment for the project.
py -3.6 -m venv .env
-
Activate the environment:
In order to utilize the isolated environment you will need to activate the environment. The activation command varies between operating systems and shells, and the correct command to use is given in the table below:
Shell Command to activate virtual environment cmd.exe C:\> .env\Scripts\activate.bat
PowerShell PS C:\> .env\Scripts\Activate.ps1
Check the "Python > Env > Active Env In Current Terminal" box in the workspace settings or add this setting to
.vscode\settings.json
:"python.terminal.activateEnvInCurrentTerminal": true,
-
Install dependencies
pip install --upgrade pip pip install -r requirements.txt
Now, running fbs run
should build and run the project.
After you have finished working on the project, and you want to return to your normal shell, you can deactivate the environment by running deactivate
.