inbo / niche_vlaanderen

Python package to run the NICHE Vlaanderen model
https://inbo.github.io/niche_vlaanderen/
MIT License
5 stars 2 forks source link

Error creating conda environment on ubuntu 16.04 #94

Closed stijnvanhoey closed 6 years ago

stijnvanhoey commented 6 years ago

When following the instructions to create the conda environment for linux, following error occurred:

> conda env create -f ./docs/niche_env.yml 
Fetching package metadata ...........

ResolvePackageNotFound: 
  - boost 1.66.0 py36_vc14_1
johanvdw commented 6 years ago

Stijn,

You are following the windows instructions. https://inbo.github.io/niche_vlaanderen/installation.html#alternative-installation should work on linux. Actually you should also be able to install most of the dependencies of niche_vlaanderen using apt, which is how I test this on travis (and locally).

Kind Regards, Johan

stijnvanhoey commented 6 years ago

Great! Worked Fine. Maybe just one remark, provide the information as a new environment as well:

conda create -n niche python=3.6 pandas pyyaml rasterio rasterstats matplotlib
pip install niche_vlaanderen

Is there any specific reason to specifify the version here? pip install niche_vlaanderen==1.0a11? what is we provide a new release?

johanvdw commented 6 years ago

The reason I specified a version: if you have an old version in your cache, the latest version will not be installed. The other option would be using --no-cache-dir https://pip.pypa.io/en/stable/reference/pip_install/#caching

But that would still not upgrade your version if you already have an older version installed.