vzhou842 / profanity-check

A fast, robust Python library to check for offensive language in strings.

Home Page:https://pypi.org/project/profanity-check

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on importing profanity_check.

FlafyDev opened this issue · comments

commented

Just downloaded profanity_check with pip install profanity-check.
And when importing from profanity_check import predict on Python I'm getting this error:

from . import __check_build  # noqa: F401
ImportError: cannot import name '__check_build' from partially initialized module 'sklearn' (most likely due to a circular import) (C:\Users\flafy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\sklearn\__init__.py)

I've tried:

  • pip install scipy
  • pip install sklearn
  • Relaunching PyCharm

How can I fix this? Thanks.

duplicate of #15