Kaggle / kaggle-api

Official Kaggle API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kaggle Installation Error - Failed to Build Wheel for Kaggle.

john-james-ai opened this issue · comments

When installing kaggle using pip, the following exception is raised.

===

Building wheel for kaggle (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
/home/*****/anaconda3/envs/bcd/lib/python3.10/site-packages/setuptools/dist.py:472: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

          ********************************************************************************
          Usage of dash-separated 'description-file' will not be supported in future
          versions. Please use the underscore name 'description_file' instead.
  
          By 2024-Sep-26, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.
  
          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************
  
  !!
    opt = self.warn_dash_deprecation(opt, section)
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
  
  error: invalid command 'bdist_wheel'
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for kaggle
Running setup.py clean for kaggle
Failed to build kaggle
ERROR: Could not build wheels for kaggle, which is required to install pyproject.toml-based projects

===

I've checked my setup.cfg, and pyproject.toml and no dash separated variables are present. I've reinstalled setuptools, yet the error persists. Thanks in advance for your support on this one.

I'm not able to reproduce this error.

What's your OS, python, pip, ... versions?