Installation Guide
Requirements
- Python: 3.8 or higher
- Operating System: macOS, Linux, or Windows
- Dependencies: NumPy, Biotite, OpenMM (optional), Numba (optional)
Installation Methods
PyPI (Recommended)
The easiest way to install synth-pdb is via PyPI:
This installs:
- The synth-pdb command-line tool
- The synth_pdb Python library
- All required dependencies
From Source
For development or to get the latest features:
The -e flag installs in "editable" mode, so changes to the source code are immediately reflected.
Development Installation
To install with development dependencies (testing, linting, etc.):
Optional Dependencies
OpenMM (Physics Engine)
For energy minimization and MD equilibration:
Or via conda (recommended for Apple Silicon):
Apple Silicon Users
OpenMM on M1/M2/M3/M4 Macs supports GPU acceleration via OpenCL/Metal, providing 5x speedup over CPU.
Numba (JIT Compilation)
For 50-100x speedup on geometry and NMR calculations:
Verification
Verify your installation:
Expected output:
Test basic functionality:
This should create a test.pdb file in the current directory.
Troubleshooting
ImportError: No module named 'openmm'
If you see this error when using --minimize:
Or skip minimization:
Apple Silicon: OpenMM Not Found
Use conda instead of pip:
Windows: Long Path Issues
Enable long paths in Windows:
# Run as Administrator
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
Next Steps
- Quick Start Guide - Generate your first structure
- First Structure Tutorial - Detailed walkthrough