Sklearn issues circular import error

Osiyo. Dohiju? Hey, welcome back.

I ran into issues with sklearn throwing an error saying it couldn’t use it and there might be a circular import or something like that.

The fix was simple. I changed my registry like the tensorflow post has. Then I ran

pip3 uninstall sklearn
pip3 uninstall scikit-learn
pip3 uninstall scipy

I restarted power shell and then ran pip3 install sklearn and everything installed. It does have an incompatibility error “tensorflow-cpu 2.3.0 requires scipy==1.4.1, but you’ll have scipy 1.5.2 which is incompatible.” so I’ll have to look into that. However this fixed my issue and I was able to run my *NN learning model.

Until next time. Dodadagohvi.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: