zhenglz/onionnet

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

Opened this issue · 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

Yes it is a Mac issue

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.