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

Solution for installation errors #58

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AghoraGuru
Copy link

  • We get this error when we try to install ml_metrics through pip
pip install ml_metrics
Collecting ml_metrics
  Downloading ml_metrics-0.1.4.tar.gz (5.0 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in ml_metrics setup command: use_2to3 is invalid.
      [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.
  • An easy solution have been added in the README.md file .

  • We will face the following error when we try to install it from source (Following the instruction given in README of Python.

it clone https://github.com/benhamner/Metrics.git
cd Metrics/Python
python setup.py install
Cloning into 'Metrics'...
remote: Enumerating objects: 1192, done.
remote: Total 1192 (delta 0), reused 0 (delta 0), pack-reused 1192
Receiving objects: 100% (1192/1192), 329.79 KiB | 715.00 KiB/s, done.
Resolving deltas: 100% (480/480), done.
error in ml_metrics setup command: use_2to3 is invalid.
  • Have added the solution in the Setup.py file.

Added "setuptools<58.0" in requirements as "setuptools>58.0" won't allow the use of use_2to3 .
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

Successfully merging this pull request may close these issues.

1 participant