Installation Guide - Windows
This guide will walk you through setting up MLVisual on Windows 10/11 step by step.
๐ Prerequisitesโ
- Windows 10/11 (64-bit)
- 8GB RAM minimum (16GB recommended)
- 10GB free disk space
- Internet connection
๐ Step-by-Step Installationโ
1. Install Unity 2022.3 LTSโ
Download Unity Hubโ
- Go to unity.com/download
- Download Unity Hub for Windows
- Run the installer as administrator
- Follow the installer instructions
Install Unity Editorโ
- Open Unity Hub
- Go to the "Installs" tab
- Click "Install Editor"
- Select Unity 2022.3.XX LTS (the latest version)
- In "Add Modules", select:
- โ Visual Studio (for Windows development)
- โ WebGL Build Support (for web demos)
- โ Android Build Support (optional)
- Click "Install" and wait for it to finish
2. Install Python 3.8+โ
Download Pythonโ
- Go to python.org/downloads
- Download Python 3.8 or higher (recommended 3.9 or 3.10)
- IMPORTANT: Check the "Add Python to PATH" box during installation
- Select "Install Now"
Verify Installationโ
Open Command Prompt (cmd) and run:
python --version
pip --version
Both commands should return version numbers without errors.
3. Set Up Virtual Environmentโ
Create Project Directoryโ
# Create a directory for your projects
mkdir C:\mlvisual-projects
cd C:\mlvisual-projects
Create Virtual Environmentโ
# Create virtual environment
python -m venv mlvisual-env
# Activate the environment
mlvisual-env\Scripts\activate
Verify it Worksโ
# You should see (mlvisual-env) at the beginning of your prompt
where python
# Should point to your virtual environment
4. Install mlvlabโ
# Make sure your virtual environment is active
# You should see (mlvisual-env) in your prompt
# Update pip
python -m pip install --upgrade pip
# Install mlvlab
pip install mlvlab
# Verify installation
python -c "import mlvlab; print('mlvlab installed correctly')"
5. Install Additional Dependenciesโ
# Essential libraries for RL
pip install numpy pandas matplotlib seaborn
pip install gymnasium stable-baselines3
pip install jupyter notebook
# For visualization and debugging
pip install tensorboard wandb
# For development
pip install black flake8 pytest
6. Configure Unity for mlvlabโ
Install the mlvlab Packageโ
- Open Unity Hub
- Create a new 3D project
- Go to Window > Package Manager
- Click the "+" in the top left corner
- Select "Add package from git URL"
- Enter:
https://github.com/mlvisual/mlvlab-unity.git - Click "Add"
Verify Installationโ
- In Unity, go to Assets > Create > mlvlab
- You should see options like "Test Environment"
- If there are no errors, everything is working!
โ Complete Verificationโ
Python Testโ
Create a file test_installation.py:
import mlvlab
import numpy as np
import matplotlib.pyplot as plt
import gymnasium as gym
print("โ
mlvlab imported correctly")
print("โ
numpy working")
print("โ
matplotlib working")
print("โ
gymnasium working")
print("โ
Installation complete!")
Unity Testโ
- Open Unity Hub
- Create a new 3D project
- Go to Assets > Create > mlvlab > Test Environment
- If there are no errors, everything is working!
๐ง Windows-Specific Troubleshootingโ
Error: "python is not recognized"โ
Cause: Python not in PATH Solution:
- Reinstall Python and check "Add Python to PATH"
- Or manually add Python to PATH:
- Search "Environment Variables" in Start menu
- Click "Edit the system environment variables"
- Click "Environment Variables"
- Under "System Variables", find "Path" and click "Edit"
- Add:
C:\Users\[YourUsername]\AppData\Local\Programs\Python\Python39\ - Add:
C:\Users\[YourUsername]\AppData\Local\Programs\Python\Python39\Scripts\
Error: "pip is not recognized"โ
Solution:
# Use python -m pip instead
python -m pip install --upgrade pip
Error: "mlvlab not found"โ
Cause: Virtual environment not activated Solution:
# Navigate to your project directory
cd C:\mlvisual-projects
# Activate the environment
mlvisual-env\Scripts\activate
# Verify it's active (you should see (mlvisual-env))
pip list
Unity can't find mlvlabโ
Solution:
- Verify the package is installed in Package Manager
- Restart Unity
- Verify you're using Unity 2022.3 LTS
Permission errors on Windowsโ
Solution:
- Run Command Prompt as Administrator
- Or disable Windows Defender real-time protection temporarily
- Or add your project folder to Windows Defender exclusions
matplotlib issues on Windowsโ
Solution:
# Install Visual C++ Redistributable
# Download from: https://aka.ms/vs/17/release/vc_redist.x64.exe
# Reinstall matplotlib
pip uninstall matplotlib
pip install matplotlib
PowerShell execution policy errorโ
Solution:
# Run PowerShell as Administrator
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
๐ Ready to Get Started!โ
Now you have everything set up on Windows. You can:
- Explore the Glossary to understand the terms
- Read the Theoretical Articles to dive deeper into theory
- Start with the Laboratories to practice
๐ Need Help?โ
If you encounter any Windows-specific issues:
- Check the Troubleshooting section above
- Search our Glossary to understand terms
- Consult the Articles for theoretical concepts
- Join our community for support
Congratulations! You've set up MLVisual on Windows correctly.