Installation Guideο
π System Requirementsο
Recommended Versions (Tested & Optimized)ο
Python: 3.11.13
Blender: 4.5.1 LTS
Minimum Requirementsο
Python: 3.11
Blender: 4.5
RAM: 8GB (16GB+ recommended)
GPU: NVIDIA, AMD, or Apple Silicon (optional but recommended)
π¦ Installation Methodsο
Method 1: PyPI Installation (Recommended)ο
# Install from PyPI
pip install palletdatagenerator
# Verify installation
python -c "import palletdatagenerator; print(palletdatagenerator.__version__)"
Method 2: Development Installationο
# Clone repository
git clone https://github.com/boubakriibrahim/PalletDataGenerator.git
cd PalletDataGenerator
# Create virtual environment
python3.11 -m venv pallet_env
# Activate virtual environment
source pallet_env/bin/activate # Linux/macOS
# or
pallet_env\Scripts\activate # Windows
# Install in development mode
pip install -e ".[dev]"
Method 3: Using the Built-in Setup Commandο
# Automated setup (creates virtual environment and installs)
python -m palletdatagenerator setup --python-version 3.11 --venv-name pallet_env
# Follow the printed instructions to activate and use
π¨ Blender Setupο
Installing Blenderο
macOSο
# Using Homebrew
brew install --cask blender
# Or download from https://www.blender.org/download/
Linux (Ubuntu/Debian)ο
# Using apt
sudo apt update
sudo apt install blender
# Or using snap
sudo snap install blender --classic
Windowsο
Download from blender.org
Run the installer
Add Blender to PATH (optional but recommended)
Verifying Blender Installationο
# Check Blender version
blender --version
# Test Python integration
blender --background --python-expr "import sys; print(f'Python {sys.version}')"
π§ Virtual Environment Setupο
Creating a Virtual Environmentο
# Python 3.11 (recommended)
python3.11 -m venv pallet_env
# Or use your default Python
python -m venv pallet_env
Activating the Virtual Environmentο
Linux/macOSο
source pallet_env/bin/activate
Windowsο
# Command Prompt
pallet_env\Scripts\activate
# PowerShell
pallet_env\Scripts\Activate.ps1
Installing Dependenciesο
# Basic installation
pip install palletdatagenerator
# Development installation with all extras
pip install "palletdatagenerator[dev,docs,gpu]"
# From source
pip install -e ".[dev]"
π§ͺ Verificationο
Quick Testο
# Test basic import
from palletdatagenerator import PalletDataGenerator
from palletdatagenerator.core.generator import GenerationConfig
print("β
PalletDataGenerator installed successfully!")
# Test configuration
config = GenerationConfig(
scene_type="single_pallet",
num_frames=1,
resolution=(640, 480),
output_dir="./test_output"
)
print("β
Configuration system working!")
Blender Integration Testο
# Test with Blender (create a simple scene first)
blender --background --python -c "
import sys
sys.path.append('path/to/your/pallet_env/lib/python3.11/site-packages')
from palletdatagenerator.blender_runner import BlenderEnvironmentManager
env = BlenderEnvironmentManager()
print('β
Blender integration working!' if env.blender_available else 'β Blender integration failed')
"
CLI Testο
# Test CLI
palletdatagenerator info --version
palletdatagenerator info --system-info
# Test configuration creation
palletdatagenerator config create example_config.yaml
π Troubleshootingο
Common Issuesο
1. Python Version Compatibilityο
# Check Python version
python --version
# If using wrong Python version, specify explicitly
python3.11 -m pip install palletdatagenerator
2. Blender Python Path Issuesο
# Find Blender's Python path
blender --background --python-expr "import sys; print(sys.executable)"
# Install package for Blender's Python
/path/to/blender/python -m pip install palletdatagenerator
3. GPU Issuesο
```python
# Check GPU availability
from palletdatagenerator.blender_runner import BlenderEnvironmentManager
env = BlenderEnvironmentManager()
env.setup_blender_preferences(use_gpu=True)
4. Import Errorsο
# Reinstall with force
pip uninstall palletdatagenerator
pip install --no-cache-dir palletdatagenerator
# Check installation
pip show palletdatagenerator
Platform-Specific Issuesο
macOSο
# Fix SSL certificates (if needed)
/Applications/Python\ 3.11/Install\ Certificates.command
# Apple Silicon specific
arch -arm64 pip install palletdatagenerator
Linuxο
# Install system dependencies
sudo apt-get update
sudo apt-get install python3-dev build-essential
# Fix permissions (if needed)
sudo chown -R $USER:$USER ~/.local
Windowsο
# Run as Administrator if needed
# Install Visual C++ Build Tools if compilation errors occur
π Next Stepsο
After successful installation:
Read the Quick Start Guide
Try the Examples
Configure your Settings
Join the Community
π Getting Helpο
If you encounter issues:
Check the FAQ
Search Existing Issues
Create a New Issue
Join Discussions
Installation complete! π Ready to generate some datasets!