sbi-dev / sbi

Simulation-based inference toolkit
https://sbi-dev.github.io/sbi/
Apache License 2.0
591 stars 152 forks source link

problem with installation #874

Closed atiye-nejad closed 1 year ago

atiye-nejad commented 1 year ago

Hi All, I am going to use sbi for my project. I have conda conda 23.7.2, and use conda create -n sbi_env python=3.7 && conda activate sbi_env and $ pip install sbi for installation sbi. but for testing installation with this code from sbi.examples.minimal import simple posterior = simple() print(posterior) I face with this error. ImportError: cannot import name '_c_internal_utils' from 'matplotlib'

Can you help me how to fix it? thanks

michaeldeistler commented 1 year ago

I do not think that this is an issue with sbi. Can you import matplotlib in the created conda environment or does this also give an error?

atiye-nejad commented 1 year ago

I am using conda on Ubuntu, and I am using nest for my neuron simulation, I can't have sbi and delfi simultaneously in nest environment in conda, can you help me how can I have all in an environmen? I am using VS. thanks

michaeldeistler commented 1 year ago

Why do you need delfi? It is deprecated and no longer maintained.

atiye-nejad commented 1 year ago

I saw in the examples of github for using simulated based inference , they are still using delfi and though maybe I have to import it.it was mentioned in the paper. I have still problem with sbi, How can I install sbi simultaneously with nest in an env?is only sbi enough for using simualtion based inference?

michaeldeistler commented 1 year ago

I do not think that installing sbi and nest simulataneously should be a problem. But: can you 1) check if you can import matplotlib in your env? 2) successfully install sbi in its own env (without nest)?

Yes, only sbi is enough for simulation-based inference, you do not need delfi.