Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install the stmetrics package #15

Open
alexandre-ffilho opened this issue Dec 7, 2023 · 1 comment
Open

Failed to install the stmetrics package #15

alexandre-ffilho opened this issue Dec 7, 2023 · 1 comment

Comments

@alexandre-ffilho
Copy link

Hello, team of developers,

I'm trying to install the stmetrics package, however python gave me a metadata generation error.

Google Colab:
image
Planetary Computer:
image

I would like to know how to install the package.

Thank you for your attention.

@araujojuliana
Copy link

Hello,

Today when I was installing the package I faced the same issue. The error is due to the deprecated sklearn package. Instead sklearn , you should use the scikit-learn package. To address this issue, you can follow these steps:

1. Clone the repository:

git clone https://github.com/brazil-data-cube/stmetrics.git
cd stmetrics

2.Edit the dependencies:

  • Open setup.py in a text editor.
  • Replace sklearn with scikit-learn in the install_requires list or anywhere else it appears.

For example, if your setup.py looks like this:
install_requires=[ 'scipy', 'sklearn', ... ],

change it to:

install_requires=[ 'scipy', 'scikit-learn', ... ],

3.Install the package:

pip install .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants