Skip to main content

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

1

Choose Your Installation Method

Select from pip (recommended), conda, or source installation based on your needs
2

Install Dependencies

The package manager will automatically install required dependencies
3

Verify Installation

Run a quick test to ensure Neurenix is working correctly
The easiest way to install Neurenix is via pip:
For the latest development version:

Install with conda

If you use Anaconda or Miniconda:
Or create a new environment with Neurenix:
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:
Building from source requires:
  • setuptools ≥42
  • setuptools-rust ≥1.0.0 (for Rust extensions)
  • Rust toolchain (for the Phynexus engine)
  • C++ compiler (GCC, Clang, or MSVC)

Optional Dependencies

Install additional features with optional dependency groups:

Optional Dependency Details

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:
Expected output:

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:
  1. Check NVIDIA drivers: nvidia-smi
  2. Verify CUDA installation: nvcc --version
  3. Reinstall with CUDA support: pip install --force-reinstall neurenix[cuda]

Build Errors from Source

If building from source fails:
  1. Ensure Rust is installed: rustc --version
  2. Update build tools: pip install --upgrade setuptools setuptools-rust wheel
  3. 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