Windows Setup Guide
Last updated
Last updated
This tutorial guides you through setting up Windows environment to run vBase samples.
We provide steps for setting up a Python virtual environment (venv) on a Windows 10 system and installing all the necessary build tools required for compiling and installing typical Python packages.
If Python is not already installed on your system, follow these steps:
Download Python:
Visit the and download the latest version of Python for Windows.
Run the Installer:
During installation, check the box that says “Add Python to PATH” at the bottom of the installer.
Select Customize Installation.
Ensure that the following options are selected:
pip
(Python package manager)
venv
(Virtual environment support)
Finish Installation and verify Python is installed:
Open Command Prompt and run:
You should see the installed Python version.
Many Python packages require compilation using Microsoft Visual C++ Build Tools.
Download Microsoft Visual C++ Build Tools:
Install the C++ Build Tools:
In the installer, select the “Desktop development with C++” workload.
Ensure the following components are selected:
MSVC v142 - VS 2019 C++ x64/x86 build tools
Windows 10 SDK
Finish Installation and allow the tools to install.
These instructions assume that the samples will be located in the C:\Users\%USERNAME%\Projects\validityBase\vbase-py-samples
folder.
Create the project folder and switch to it:
Samples can be cloned using git
or downloaded and extracted as a ZIP file.
If you have git
installed, clone the vbase-py-samples
repository using the command line:
On Windows 10, the easiest way to clone a GitHub repository without installing additional software is to use GitHub’s built-in Zip download feature. This method allows you to download the repository as a ZIP file and extract it, effectively “cloning” the repository without requiring Git or any command-line tools.
Go to the GitHub Repository:
Open your web browser and navigate to the GitHub repository page: https://github.com/validityBase/vbase-py-samples
Download as ZIP:
On the repository’s main page, click the green Code button.
In the dropdown, select Download ZIP. This will download the entire repository as a ZIP file.
Extract the ZIP File:
Once downloaded, locate the ZIP file (usually in your Downloads folder).
Right-click on the ZIP file and select Extract All….
Choose a destination folder, such as the samples folder C:\Users\%USERNAME%\Projects\validityBase\vbase-py-samples
, and extract the contents.
Open Command Prompt (or PowerShell) and navigate to your project folder:
Create a virtual environment using the venv
module:
This creates a folder called venv
in your project directory, which will contain the virtual environment.
Activate the virtual environment:
You should now see (venv)
at the beginning of your command line, indicating that the virtual environment is active.
Some packages need additional Python build tools like setuptools
and wheel
. Install these tools globally in your virtual environment:
Upgrade pip
, setuptools
, and wheel
:
Install build
:
The build
package helps when building some Python projects.
Now that the virtual environment and build tools are set up, you can install the vBase dependencies:
Change to the project folder using Command Prompt or PowerShell navigate to the vbase-py-samples
project folder:
Instal dependencies:
The vbase-py-samples
project comes with its requirements-win.txt
.
This installs the required pre-built packages available for Windows:
Once the above pip install
command succeeded, you are ready to run the samples.
Go to the and download the installer.