简体   繁体   English

亵渎检查错误无法从“sklearn.externals”导入名称“joblib”

[英]profanity check error cannot import name 'joblib' from 'sklearn.externals'

I have a env that I just Installed profanity_check but when I run my code I get a error:我有一个环境,我刚刚安装了 profanity_check,但是当我运行我的代码时,出现错误:

Traceback (most recent call last):
  File "bot.py", line 1, in <module>
    from profanity_check import predict, predict_prob
  File "D:\bot\bot\lib\site-packages\profanity_check\__init__.py", line 1, in <module>
    from .profanity_check import predict, predict_prob
  File "D:\bot\bot\lib\site-packages\profanity_check\profanity_check.py", line 3, in <module>     
    from sklearn.externals import joblib
ImportError: cannot import name 'joblib' from 'sklearn.externals' (D:\bot\bot\lib\site-packages\sklearn\externals\__init__.py)

I searched into stackoverflow but I get more errors.我搜索了 stackoverflow,但出现了更多错误。

thank you for reading:D感谢您的阅读:D

Try this out:试试这个:

    pip install alt-profanity-check
    pip install sklearn --upgrade
    from profanity_check import predict, predict_prob

Details here: https://github.com/vzhou842/profanity-check/issues/28详情在这里: https://github.com/vzhou842/profanity-check/issues/28

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 sklearn.externals 导入 joblib 时收到导入错误 - Recieved import error while importing joblib from sklearn.externals Python 导入错误:无法从“sklearn.externals”导入名称“六” - Python import error: cannot import name 'six' from 'sklearn.externals' 我在 spyder ImportError: cannot import name 'six' from 'sklearn.externals' 尽管我已经安装了六个模块 - i got this error on spyder ImportError: cannot import name 'six' from 'sklearn.externals' despite i have installed the six module Sklearn 错误,无法从“joblib”导入名称“Logger” - Sklearn error, cannot import name 'Logger' from 'joblib' sklearn.externals joblib 抛出 ImportError - 服务器上没有名为 joblib.numpy_pickle 的模块 - sklearn.externals joblib throws ImportError - no module named joblib.numpy_pickle on a server 导入 sklearn 时 Python 出错。无法从“joblib.logger”导入名称“Logger” - Error in Python when importing sklearn ..cannot import name 'Logger' from 'joblib.logger' sklearn.externals模块说明 - sklearn.externals module description 没有名为“sklearn.externals.joblib”的模块错误 - No module named 'sklearn.externals.joblib' ERROR 导入错误:无法从“sklearn.tree”导入名称“tree” - Import Error: cannot import name 'tree' from 'sklearn.tree' 从 sklearn 导入时出现导入错误:无法导入名称 check_build - ImportError in importing from sklearn: cannot import name check_build
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM