nismod / snail

spatial networks impact assessment library 🐌
https://nismod.github.io/snail/
MIT License
9 stars 1 forks source link

CMake error when installing #44

Closed dianajjaramillo closed 1 year ago

dianajjaramillo commented 2 years ago

When I try installing snail on my mac I am receiving CMake errors both using "pip install ." and "python setup.py develop". I also tried installing snail on a Linux cluster, and I also receive CMake errors. I have attached the errors I receive on both as well as the CMake error log. linux_error.pdf mac_error.pdf mac_error_log.pdf mac_error_pip.pdf

tomalrussell commented 2 years ago

Thanks for the error report. Could you try pulling in the latest changes and running pip install . again? I've had a go at reworking the build configuration and dependencies.

See updated notes on different installation methods in README#installation.

tomalrussell commented 2 years ago

Hi @dianajjaramillo is this all fixed for you now?

Either route should work:

thomas-fred commented 2 years ago

Hello :)

Running on Ubuntu 20.04 I cloned the repo and ran:

conda env create -f .environment.yml
conda activate snail-dev
pip install -e .

Which failed with setuptools complaining about my C++ compiler version (a different error to @dianajjaramillo).

Installing the build-essential package and trying to pip install again was successful.

sudo apt-get install build-essential -y
pip install -e .