Problems with installing and using scikit-learn in Anaconda

后端 未结 2 543
名媛妹妹
名媛妹妹 2021-01-16 04:18

I installed Anaconda on 64bit windows and I also installed scikit-learn using \"conda install scikit-learn\". However I can\'t find scikit-learn when I print out all modules

相关标签:
2条回答
  • 2021-01-16 04:54

    As mentioned in the comments, you import the scikit-learn module using:

    import sklearn
    
    0 讨论(0)
  • 2021-01-16 04:56

    If it still does not work then try to activate environment which is by default root, if you have not created separate environment while installing.

    Just run from cmd : activate {env_name}

    For your case, it would be : activate root then run simple python file to check scikit-learn is imported or not.

    demo.py

    import sklearn

    See output in image below :

    enter image description here

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