AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  How to use / import Scikit-learn package

    Posted Tue October 24, 2023 10:30 AM

    Hi Ranjit / Ayappan,

    I am trying to verify the installed scikit-learn package. I have tried following and both don't work. Can you please help?

    >>> import scikit-learn
      File "<stdin>", line 1
        import scikit-learn
                     ^
    SyntaxError: invalid syntax
    >>>

     import sklearn
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ModuleNotFoundError: No module named 'sklearn'
    >>>

    Thanks

    Mi



    ------------------------------
    Mi Wang
    ------------------------------


  • 2.  RE: How to use / import Scikit-learn package

    Posted Tue October 24, 2023 01:59 PM

    Hi

    is it resolved ?

    I am hoping that scikit-learn package is installed in your system.

    verify the package installation using below.

    # python3 -m pip list | grep -i scikit*
    scikit-learn       0.24.2

    # python3
    Python 3.9.18 (main, Sep 19 2023, 04:57:07) 
    [GCC 10.3.0] on aix
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sklearn
    >>> help(sklearn)



    ------------------------------
    Ranjit Ranjan
    ------------------------------



  • 3.  RE: How to use / import Scikit-learn package

    Posted Wed October 25, 2023 06:10 PM

    Hi Ranjit,

    Yes, it works now.

    Thanks

    Mi



    ------------------------------
    Mi Wang
    ------------------------------