The easiest way to install LabLink Client on Windows is using the provided PowerShell installation script:
- Download or clone the LabLink repository
- Open the LabLink folder in File Explorer
- Double-click
install-client.bat
That's it! The batch file handles the PowerShell execution policy automatically.
Open PowerShell (no admin rights needed) and run:
powershell -ExecutionPolicy Bypass -File .\install-client.ps1Important: You must use the -ExecutionPolicy Bypass flag because Windows blocks running PowerShell scripts by default for security reasons.
If you don't have the repository yet, you can install directly from GitHub:
iwr -useb https://raw.githubusercontent.com/X9X0/LabLink/main/install-client.ps1 | iexIf you try to run .\install-client.ps1 directly, you'll see this error:
File C:\...\install-client.ps1 cannot be loaded because running scripts
is disabled on this system. For more information, see about_Execution_Policies
This is a security feature of Windows PowerShell that prevents untrusted scripts from running automatically. It's not a bug in LabLink!
Windows has several execution policies:
- Restricted (default): No scripts can run
- RemoteSigned: Only scripts from trusted publishers can run
- Unrestricted: All scripts can run (not recommended)
- Bypass: Temporarily allows a specific script to run
You have three options to solve this:
This is the safest approach - it only bypasses the policy for this one script:
powershell -ExecutionPolicy Bypass -File .\install-client.ps1Double-click install-client.bat - it automatically uses the bypass flag.
You can permanently change your execution policy, but this reduces security:
# Run PowerShell as Administrator, then:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserThen you can run scripts normally:
.\install-client.ps1Note: We don't recommend this approach unless you understand the security implications.
The install-client.ps1 script will:
- Check for Python 3.11+ - Installs if missing or too old
- Optionally install Git - Makes updates easier (you'll be prompted)
- Download LabLink - Clones repository or downloads ZIP
- Create virtual environment - Isolates Python dependencies
- Install dependencies - Installs PyQt6 and other required packages
- Create launcher - Makes a
lablink-client.batfile - Create shortcuts - Desktop and Start Menu shortcuts
Installation typically takes 5-10 minutes depending on your internet connection.
If you prefer to install manually or the script doesn't work for some reason:
-
Python 3.11 or higher
- Download from: https://www.python.org/downloads/
- During installation, check "Add Python to PATH"
-
Git (optional, but recommended)
- Download from: https://git-scm.com/download/win
-
Get the code
# Option A: With Git git clone https://github.com/X9X0/LabLink.git cd LabLink # Option B: Download ZIP # Download from https://github.com/X9X0/LabLink/archive/refs/heads/main.zip # Extract and navigate to the folder
-
Create virtual environment
cd client python -m venv venv .\venv\Scripts\activate -
Install dependencies
python -m pip install --upgrade pip pip install -r requirements.txt
-
Run the client
python main.py
-
Create a shortcut (optional)
- Create a batch file
lablink-client.batin the LabLink folder:
@echo off cd /d "%~dp0" set PYTHONPATH=%~dp0 call "client\venv\Scripts\activate.bat" python "client\main.py" %*
- Right-click the batch file and create a shortcut to your desktop
- Create a batch file
- OS: Windows 10 or Windows 11 (64-bit)
- Python: 3.11 or higher
- RAM: 4 GB minimum, 8 GB recommended
- Disk Space: ~500 MB for installation
- Network: Required for connecting to LabLink servers
If you see "Python is not recognized as an internal or external command":
- Install Python from https://www.python.org/downloads/
- During installation, check "Add Python to PATH"
- Restart PowerShell after installation
If Python installation fails:
- Right-click PowerShell
- Select "Run as Administrator"
- Try the installation command again
If .\venv\Scripts\activate doesn't work:
# Try this instead:
.\venv\Scripts\Activate.ps1If you still get an execution policy error:
powershell -ExecutionPolicy Bypass -File .\venv\Scripts\Activate.ps1PyQt6 requires Visual C++ redistributables. Install from: https://aka.ms/vs/17/release/vc_redist.x64.exe
If the desktop shortcut doesn't launch LabLink:
- Right-click the shortcut → Properties
- Check that "Target" points to
lablink-client.bat - Check that "Start in" points to your LabLink folder
If you see this error when trying to run the client:
ModuleNotFoundError: No module named 'client'
Cause: The working directory is incorrect. The client must be run from the LabLink root directory, not from inside the client folder.
Solution:
- Make sure you're in the LabLink root directory (e.g.,
C:\Users\YourName\LabLink) - Run the launcher:
.\lablink-client.bat - Or run directly:
python client\main.py(after activating venv)
If you installed before this fix:
- Navigate to your LabLink folder in PowerShell
- Run the installer again:
powershell -ExecutionPolicy Bypass -File .\install-client.ps1 - This will recreate the
lablink-client.batwith the correct paths - The installer will detect the existing installation and update files
Quick Fix Without Reinstalling:
You can manually fix the lablink-client.bat file:
- Open
lablink-client.batin Notepad - Replace the contents with:
@echo off
cd /d "%~dp0"
call "client\venv\Scripts\activate.bat"
python "client\main.py" %*- Save and try running it again
The SD card image writer is not implemented for Windows in the GUI. Use one of these alternatives:
- Win32 Disk Imager: https://sourceforge.net/projects/win32diskimager/
- Rufus: https://rufus.ie/
- balenaEtcher: https://www.balena.io/etcher/
You can still use the SSH Deployment Wizard to deploy LabLink to an existing Raspberry Pi.
If you encounter issues:
- Check this troubleshooting section
- Check the main README for general documentation
- File an issue on GitHub: https://github.com/X9X0/LabLink/issues
Once installed, you can:
-
Launch LabLink Client
- Double-click the desktop shortcut, or
- Run
lablink-client.bat, or - Navigate to
clientfolder and runpython main.py
-
Connect to a Server
- Use the SSH Deployment Wizard to set up a new Raspberry Pi server
- Or connect to an existing LabLink server via File → Connect to Server
-
Discover Raspberry Pis
- Use Tools → Raspberry Pi Discovery to find LabLink servers on your network
-
Explore the Documentation
- See Getting Started Guide
- See API Reference
- See Client README
TBD