How to Fix ImportError "No Module Named Sklearn" Error in Python | Python Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

ความคิดเห็น •

  • @Danyul.
    @Danyul. 2 ปีที่แล้ว +3

    this channel is a goldmine, straight to the point on every video. thank you

    • @philparisi_
      @philparisi_  2 ปีที่แล้ว

      Thanks for the feedback Daniel! I would love if you became a subscriber - I am always looking for folks like you who have a critical eye to improve my channel :)

    • @Danyul.
      @Danyul. 2 ปีที่แล้ว

      @@philparisi_ already subbed:) keep up the good work

  • @dannyezechukwu1175
    @dannyezechukwu1175 ปีที่แล้ว +2

    Solid video man. I couldn't get this for the life of me.

    • @philparisi_
      @philparisi_  ปีที่แล้ว

      Python packages can be such a pain. Glad this worked for you - best of luck on your project!

  • @ducduong6328
    @ducduong6328 ปีที่แล้ว +2

    My problem has been solved.
    Thank you so much!

    • @philparisi_
      @philparisi_  ปีที่แล้ว

      Great to hear! Happy coding.

  • @harshanthal
    @harshanthal ปีที่แล้ว +2

    Thank you sir it was really helpful😊

    • @philparisi_
      @philparisi_  ปีที่แล้ว

      Woohooo glad to hear it! Thanks for tuning in and have a great week

  • @kushwaha_ji.
    @kushwaha_ji. ปีที่แล้ว +1

    You are the God bro, I really itraate with this problem within 1 hours

    • @philparisi_
      @philparisi_  ปีที่แล้ว

      I gotchu bro, happy to help

  • @mahadevanar5307
    @mahadevanar5307 2 ปีที่แล้ว +2

    Thank you for this video.... I have just started learning python

    • @philparisi_
      @philparisi_  2 ปีที่แล้ว +2

      Awesome! A big difference between Python and MATLAB is that python requires you to install packages for most python projects. And then, at the top of every script, you need to tell python you want to use a given package with:
      import package_name1
      import package_name2
      and so on!

    • @mahadevanar5307
      @mahadevanar5307 2 ปีที่แล้ว +1

      @@philparisi_ Thankyou Phil...I want to learn more from you (MATLAB and python)

  • @jako5056
    @jako5056 ปีที่แล้ว +2

    Thank you so much!

    • @philparisi_
      @philparisi_  ปีที่แล้ว

      Absolutely! Glad I could help. Best of luck with your ML project.

  • @xlr60viper18
    @xlr60viper18 3 หลายเดือนก่อน +1

    Thanks buddy 😊

    • @philparisi_
      @philparisi_  3 หลายเดือนก่อน

      You’re welcome :)

  • @maxigodgo
    @maxigodgo ปีที่แล้ว +1

    thank you!... you really helped me

    • @philparisi_
      @philparisi_  ปีที่แล้ว

      Of course! Happy to be there for you. Good luck programming!

  • @sulemankhan-mb3gr
    @sulemankhan-mb3gr ปีที่แล้ว +2

    Thank very much bro

    • @philparisi_
      @philparisi_  ปีที่แล้ว

      No problemo 🤙🏽 have fun with your machine learning!

  • @Rosvend
    @Rosvend 10 หลายเดือนก่อน +1

    I had this same problem even though I had scikit-learn properly installed and it showed me with pip list and pip show. What fixed it for me is changing the python version my IDE (VSCode) was using, I had scikit-learn installed in my python 3.11.3 but VScode was using Python 3.12 which didn't have scikit-learn installed. You can change the interpreter in VSCode with CTRL + SHIFT + P and selecting 'Python: Select Interpreter', then change to the python version scikit-learn says is installed in. One way to check is this is your problem is running a python file in the CMD that has import sklearn, if it works in the CMD but not in your IDE, it probably has the same problem as me.

    • @philparisi_
      @philparisi_  10 หลายเดือนก่อน

      Thank you for posting this solution! Another good way to avoid all this, ks creating your own virtual environments for each peoject (like PyCharm does). That way you have explicit control over oython versioning and packages. Have fun out there!

    • @goofvos
      @goofvos 6 หลายเดือนก่อน

      yoo this saved me thank you so much

  • @lyf468
    @lyf468 ปีที่แล้ว +2

    You saved me thankyou

    • @philparisi_
      @philparisi_  ปีที่แล้ว

      Bless up and good luck out there 🙌🏽

  • @physics4967
    @physics4967 ปีที่แล้ว +1

    thnx

  • @helmotelmo
    @helmotelmo ปีที่แล้ว +1

    thenku

    • @philparisi_
      @philparisi_  ปีที่แล้ว

      You are very welcome :)