Prerequisites: Anaconda/Miniconda, Git
# 1. Clone repository
git clone git@github.com:singer-yang/DeepLens.git # or use HTTPS
cd DeepLens
# 2. Create and activate conda environment with PyTorch
conda create -n deeplens python=3.10 pytorch torchvision torchaudio -c pytorch
conda activate deeplens
# 3. Upgrade build tools
pip install --upgrade setuptools packaging pip
# 4. Install DeepLens package
pip install -e .
# 5. Install Jupyter Notebook
pip install jupyter notebook
# 6. Verify installation
python -c "from deeplens import GeoLens; print('Success!')"
# 7. Return to tutorials
cd ..