JakeColtman / bartpy

Bayesian Additive Regression Trees For Python
https://jakecoltman.github.io/bartpy/
MIT License
219 stars 44 forks source link

ModuleNotFoundError: No module named 'bartpy.samplers' #54

Open pzivich opened 3 years ago

pzivich commented 3 years ago

On Python 3.6 I run into the following:

Traceback (most recent call last):
    import bartpy.sklearnmodel
    from bartpy.samplers.leafnode import LeafNodeSampler
ModuleNotFoundError: No module named 'bartpy.samplers'

This is for the PyPI version (v0.0.2). I also ran into the same issue with installing directly from github

KlemenVrhovec commented 3 years ago

Look at issue #37 . I had the same problem and installing like this pip install git+https://github.com/JakeColtman/bartpy.git --upgrade worked for me.

robsalamon commented 3 years ago

Same issue- was unable to reinstall using the above method either

lilyguibessette commented 1 year ago

I'm also having this issue even after attempting to install with pip install git+https://github.com/JakeColtman/bartpy.git --upgrade - any additional help/advice would be very helpful

chrislalk commented 1 year ago

Did you uninstall bartpy before reinstalling via git? Without prior uninstallation, it might not work...