#πŸ”’ getting error in kaggle

37 messages Β· Page 1 of 1 (latest)

rigid laurel
#

Im trying to install this pip install opendatasets pandas numpy sklearn jovian --quiet but getting the error as shown in ss

clear lagoonBOT
#

@rigid laurel

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

grave fiber
#

!paste give full log

clear lagoonBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

rigid laurel
grave fiber
#

Yes

#

The whole log

#

Not just part of it

#

It should start from your run the command and end with it exit

rigid laurel
#
  
  Γ— python setup.py egg_info did not run successfully.
  β”‚ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Preparing metadata (setup.py) ... error
error: metadata-generation-failed

Γ— Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Note: you may need to restart the kernel to use updated packages.```
grave fiber
#

This is just about the final 15-20 line

rigid laurel
#

this is the full error

bleak wraith
#

why is it --quiet

rigid laurel
rigid laurel
rigid laurel
#

import jovian doesnt work as well

#

?? any idea

mighty apex
# rigid laurel

If you run that pip install command on your computer, what does it show?

mighty apex
# rigid laurel

Try also without --quiet, so you can see where it went wrong

rigid laurel
#

i did this is kaggle

rigid laurel
mighty apex
rigid laurel
mighty apex
rigid laurel
mighty apex
# rigid laurel

After the [15 lines of output] line, can you read what it says?

rigid laurel
#
      rather than 'sklearn' for pip commands.

      Here is how to fix this error in the main use cases:
      - use 'pip install scikit-learn' rather than 'pip install sklearn'
      - replace 'sklearn' by 'scikit-learn' in your pip requirements files
        (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
      - if the 'sklearn' package is used by one of your dependencies,
        it would be great if you take some time to track which package uses
        'sklearn' instead of 'scikit-learn' and report it to their issue tracker
      - as a last resort, set the environment variable
        SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error

      More information is available at
      https://github.com/scikit-learn/sklearn-pypi-package
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 25.0.1 -> 25.1.1
[notice] To update, run: python.exe -m pip install --upgrade pip
error: subprocess-exited-with-error

Γ— Getting requirements to build wheel did not run successfully.
β”‚ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.```
mighty apex
#

right

#

Do you understand what it says?

rigid laurel
#

yeah, use scikit-learn

mighty apex
#

πŸ‘

rigid laurel
#

thanks, now its working on kaggle

clear lagoonBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.