onionnet icon indicating copy to clipboard operation
onionnet copied to clipboard

ImportError: cannot import name 'joblib' when using python predict.py -h (Mac platform)

Open GattiMh opened this issue 2 years ago • 2 comments

Hello,

I have followed the installation instructions and I think it went well since I can use the python generate_features.py -h but I get this error using the predict.py:

  File "predict.py", line 7, in <module>
    from sklearn.externals import joblib
ImportError: cannot import name 'joblib'

Anyone can help? Is it a Mac issue maybe?

Many thanks

GattiMh avatar Jan 26 '23 12:01 GattiMh

Yes it is a Mac issue

tanmayg1502 avatar Oct 07 '23 06:10 tanmayg1502

There is a special requirement for the scikit-learn version (pip install scikit-learn==0.22.1), I would suggest you may reinstall scikit-learn.

zhenglz avatar Oct 08 '23 07:10 zhenglz