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 in getting started manual with jupiter notebook #92

Closed milotictanja closed 6 years ago

milotictanja commented 6 years ago

Niche Python Package question

Description

I tried to go through the getting started manual, but I got stuck in the first line of code. I downloaded the niche source code and opened the getting started manual in jupyter notebook (in which I tried to run the code).

What I Did


import niche as nv
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-11-eb9dae3d6d6d> in <module>()
----> 1 import niche_env as nv

ModuleNotFoundError: No module named 'niche_env'
johanvdw commented 6 years ago

Thanks for testing!

I suppose you have used the niche environment installation method.

Can you verify the installation was succesful by running (from the anaconda prompt):

activate niche_vlaanderen
niche --help

If that works, can you try starting the jupyter notebook from the same prompt, with the environment activated: jupyter

johanvdw commented 6 years ago

Rereading your question: you should do: import niche_vlaanderen as nv

Let me know whether this solves your issue.

milotictanja commented 6 years ago

solved! Thanks