从sklearn导入时导入check_build错误

时间:2019-01-08 10:14:38

标签: python scikit-learn pycharm

Scikit-learn importing _check_build问题。我正在使用pycharm作为代码。

我已尽一切努力来解决该问题,就像我已经多次重新启动外壳程序,重新安装scikit-learn,升级pip和scikit-learn版本,已经声明名为PYTHONPATH的变量一样。

这是错误

Traceback (most recent call last):
  File "C:/Users/Kashif/PycharmProjects/Machine Learning/K-NearestNeighbour/Code.py", line 3, in <module>
    import sklearn
  File "C:\Users\Kashif\PycharmProjects\Machine Learning\K-NearestNeighbour\venv\lib\site-packages\sklearn\__init__.py", line 63, in <module>
    from . import __check_build
ImportError: cannot import name '__check_build' from 'sklearn' (C:\Users\Kashif\PycharmProjects\Machine Learning\K-NearestNeighbour\venv\lib\site-packages\sklearn\__init__.py)

0 个答案:

没有答案