erdogant / bnlearn

Python library for learning the graphical structure of Bayesian networks, parameter learning, inference and sampling methods.
https://erdogant.github.io/bnlearn
Other
463 stars 45 forks source link

Installing problem #82

Closed vin2015-edem closed 9 months ago

vin2015-edem commented 1 year ago

I am trying to install it in Kaggle.

!pip install bnlearn or !pip install git+https://github.com/erdogant/bnlearn

But it gives me an error ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/opt/conda/lib/python3.10/site-packages/numpy-1.25.0.dist-info/METADATA'

Everything worked before (a year ago) - see my example: Pollen - BN for Paper

erdogant commented 1 year ago

Numpy must be of version numpy>=1.24.1 When I check it in Kaggle it has a lower version

import numpy
numpy.__version__

try to update numpy to the latest version:

pip install -U numpy

vin2015-edem commented 1 year ago

image

erdogant commented 10 months ago

I was able to reproduce the error and created a gif how I could solve the issue. See issue #86 for the solution.