← Back to Documentation
Installation Guide
Get started with PyHuman in just a few minutes. Follow this guide to install PyHuman and set up your development environment.
Quick Start
For most users, a simple pip install is all you need:
Terminal
pip install pyhuman
System Requirements
Required Dependencies
- Python≥ 3.8
- PyTorch≥ 1.12.0
- NumPy≥ 1.21.0
- Scikit-learn≥ 1.0.0
Optional Dependencies
- Matplotlib≥ 3.5.0
- Jupyterlatest
Installation Options
Install with pip (Recommended)
Quick installation using Python package manager
Terminal
pip install pyhuman# For latest development version:pip install git+https://github.com/pyhuman/pyhuman.git
Install with conda
Installation using conda package manager
Terminal
conda install -c conda-forge pyhuman# Or create a new environment:conda create -n pyhuman python=3.9 pyhuman -c conda-forgeconda activate pyhuman
Development Installation
For contributors and advanced users
Terminal
git clone https://github.com/pyhuman/pyhuman.gitcd pyhumanpip install -e .[dev]# Run tests to verify installation:pytest tests/
Verify Installation
After installation, verify that PyHuman is working correctly:
Python
import pyhuman print(f"PyHuman version: {pyhuman.__version__}") # Test basic functionality from pyhuman.explain import LIME explainer = LIME() print("✅ PyHuman installed successfully!")
Installation Complete!
If you see the version number and success message, PyHuman is ready to use.
Troubleshooting
Common Issues
- •Import Error: Make sure PyTorch is installed correctly first
- •Version Conflicts: Create a fresh virtual environment
- •Permission Errors: Use
--user
flag with pip
Get Help
If you are still having issues, here are some resources:
Ready to Start Building?
Now that PyHuman is installed, explore our tutorials and examples to start building human-centric AI systems.