Installation¶
Requirements¶
- Python 3.11 or higher
- pip or pipx
Basic Installation¶
Install NeuralMemory from PyPI:
This installs the core library with CLI support.
Optional Dependencies¶
NeuralMemory has optional features you can install as needed:
Server (FastAPI + Web UI)¶
Includes:
- FastAPI REST API
- Interactive Web UI for brain visualization
- WebSocket sync support
Vietnamese NLP¶
Includes:
- underthesea - Vietnamese NLP toolkit
- pyvi - Vietnamese word segmentation
English NLP¶
Includes:
- spaCy - Industrial NLP
- en_core_web_sm model
Neo4j Storage¶
For production deployments with Neo4j graph database.
All Features¶
Installs everything above.
Development Installation¶
For contributing or local development:
git clone https://github.com/nhadaututtheky/neural-memory
cd neural-memory
pip install -e ".[dev]"
pre-commit install
Verify Installation¶
Environment Variables¶
| Variable | Description | Default |
|---|---|---|
NEURAL_MEMORY_DIR |
Data directory | ~/.neural-memory |
NEURAL_MEMORY_BRAIN |
Default brain name | default |
NEURAL_MEMORY_JSON |
Always output JSON | false |
Troubleshooting¶
Command not found¶
If nmem is not found after installation:
# Check if scripts are in PATH
python -m neural_memory.cli --help
# Or use pipx for isolated install
pipx install neural-memory
Permission errors on Windows¶
Run terminal as Administrator or install with --user:
Missing dependencies¶
If optional features fail: