-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scipy version mismatch when installing with Python 3.9 #1229
Comments
Thanks for reporting this. Which python version are you using? conda create -n sbi python=3.12
conda activate sbi
pip install sbi and then test it in a python shell: python
import sbi
from sbi.inference import SNPE, prepare_for_sbi, simulate_for_sbi Does that work? |
Hello,
I tried python version 3.9.6
Then I switched to updated one 3.9.19.
I haven't tried with 3.12.
Deepa Tilwani,
Ph.D. Student,
USC, Columbia Email : ***@***.***
LinkedIn <https://www.linkedin.com/in/deepa-tilwani-b758551a0> |
https://deepa-tilwani.github.io/
…On Wed, Aug 21, 2024 at 11:38 AM Jan ***@***.***> wrote:
Thanks for reporting this. Which python version are you using?
In my experience, the issue is solved when you install everything in a
clean environment that has python 3.12 installed. E.g.,
conda create -n sbi python=3.12
conda activate sbi
pip install sbi
and then test it in a python shell:
python
import sbi
from sbi.inference import SNPE, prepare_for_sbi, simulate_for_sbi
Does that work?
—
Reply to this email directly, view it on GitHub
<#1229 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGH43Z6JFJM3BEIEVPWQP43ZSSX6VAVCNFSM6AAAAABM4JKNDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBSGM4TMNZRGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
maybe you can give it another try with 3.10, see here: |
okay yes with Python 3.9 it is not working for sure. Python 3.12 I was able to import it. Can you update the versions needed for installation in the readme or requirements? On installation page it is : Create an environment for sbi (indicate Python 3.6 or higher); activate it |
Great that it is working for you now. Thanks for pointing me to the install instruction on the website, those are definitively out of date and we will update them soon. In the repository readme, we require python>3.8. We will think about moving up to 3.10, which will then resolve this issue that seems to apply only to 3.9. I will leave this issue here open in the meantime. |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Version SBI : 0.22.0
from sbi.inference import SNPE, prepare_for_sbi, simulate_for_sbi
Expected behavior
Additional context
I tried with scipy 1.13.0. It failed.
Scipy version >1.9.0 does not import the required functions. I have to downgrade which is a dependency issue with other packages.
The text was updated successfully, but these errors were encountered: