Installation
Neurenix can be installed through multiple methods depending on your environment and requirements. Choose the method that best fits your needs.Requirements
Before installing Neurenix, ensure your system meets these requirements:- Python: 3.8 or higher (3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14)
- Operating System: Linux, macOS, or Windows
- Dependencies: NumPy ≥1.24.0, SciPy ≥1.10.0, typing-extensions ≥4.7.0
For hardware acceleration, additional dependencies may be required. See the Hardware-Specific Setup section below.
Installation Methods
Choose Your Installation Method
Select from pip (recommended), conda, or source installation based on your needs
Install with pip (Recommended)
The easiest way to install Neurenix is via pip:Install with conda
If you use Anaconda or Miniconda:The conda package uses the recipe defined in
conda-recipe/meta.yaml and includes all core dependencies (numpy ≥1.24.0, scipy ≥1.10.0, typing-extensions ≥4.7.0).Install from Source
For development or to get the latest features:Optional Dependencies
Install additional features with optional dependency groups:Optional Dependency Details
| Package Group | Includes | Use Case |
|---|---|---|
dev | pytest, pytest-cov, black, isort, mypy | Development and testing |
cuda | pycuda≥2022.1 | NVIDIA GPU acceleration |
distributed | ray≥2.0.0 | Multi-node training |
agents | gymnasium≥0.28.0 | Reinforcement learning agents |
huggingface | transformers≥4.0.0, datasets≥2.0.0 | Model hub integration |
Hardware-Specific Setup
CUDA (NVIDIA GPUs)
For NVIDIA GPU support:Requires NVIDIA drivers and CUDA toolkit (11.0 or higher) to be installed separately.
ROCm (AMD GPUs)
For AMD GPU support with ROCm:TPU (Google Cloud)
For Google Cloud TPU support:ARM Devices
For ARM-based devices (Raspberry Pi, Jetson Nano, etc.):Neurenix automatically detects ARM architecture features including NEON SIMD and SVE (Scalable Vector Extensions).
WebAssembly
For browser-based execution:Verify Installation
After installation, verify Neurenix is working correctly:Command-Line Interface
Neurenix includes a comprehensive CLI with multiple commands:CLI commands are registered in
pyproject.toml and include: init, run, save, predict, eval, export, hardware, preprocess, monitor, optimize, dataset, serve, and help.Troubleshooting
Import Error: No module named ‘neurenix’
Ensure you’ve activated the correct Python environment and installed the package:CUDA Not Available
If CUDA is installed but not detected:- Check NVIDIA drivers:
nvidia-smi - Verify CUDA installation:
nvcc --version - Reinstall with CUDA support:
pip install --force-reinstall neurenix[cuda]
Build Errors from Source
If building from source fails:- Ensure Rust is installed:
rustc --version - Update build tools:
pip install --upgrade setuptools setuptools-rust wheel - Try building without Rust extensions:
export NEURENIX_NO_RUST=1 && pip install -e .
Missing Optional Dependencies
If features are not working:Docker Installation
For containerized deployments:Quickstart
Build your first model with Neurenix
API Reference
Explore the complete API documentation