Skip to content

pip install wrangle is failing due to sklearn in requirements.txt instead of scikit-learn #35

Description

@mathav95raj
  1. Confirm the below

[Yes ] My Python version is 3.5 or higher (3.10.10)
[Yes ] I have searched through the Issues for a duplicate

pip install wrangle is failing because it is unable to install the deprecated sklearn dependency. In the pypi page of sklearn, there is a notice to start using scikit-learn instead of sklearn .
Request to change this in the requirements.txt and setup.py

Error message of pip installation in a fresh python environment:

pip install wrangle
Collecting wrangle
  Using cached wrangle-0.7.2-py3-none-any.whl (52 kB)
Collecting pandas
  Using cached pandas-2.0.0-cp310-cp310-win_amd64.whl (11.2 MB)
Collecting sklearn
  Using cached sklearn-0.0.post4.tar.gz (3.6 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\mathavraj.j\AppData\Local\Temp\pip-install-18ecly75\sklearn_3ccb68e632a54fa797cf951a31d86475\setup.py", line 10, in <module>
          LONG_DESCRIPTION = f.read()
        File "C:\Users\mathavraj.j\AppData\Local\Programs\HCLTech\AION\2.7.0.3\python\lib\encodings\cp1252.py", line 23, in decode
          return codecs.charmap_decode(input,self.errors,decoding_table)[0]
      UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 7: character maps to <undefined>
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
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.```



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions