Getting PyCharm to import sklearn

后端 未结 8 1093
盖世英雄少女心
盖世英雄少女心 2021-02-18 22:32

Beginner here.

I’m trying to use sklearn in pycharm. When importing sklearn I get an error that reads “Import error: No module nam

相关标签:
8条回答
  • 2021-02-18 23:08

    SOLVED:

    1. reinstalled Python 3.7.9 (not the latet)
    2. installed numpy 1.17.5 (not the latest)
    3. installed scikit-learn (latest)

    sklearn works now!

    0 讨论(0)
  • 2021-02-18 23:11

    Double check your python interpreter. Check whether you have select correct interpreter at the first when you create the project.

    Or else you can check your interpreter from the project view under External Libraries.

    In your case if you didn't select 2.7.10 (/anaconda/bin/python.app) as your interpreter for the project at the beginning still the program give the same error Import error: No module named sklearn.

    0 讨论(0)
提交回复
热议问题