skip to Main Content

I’m using VS Code on a 2018 Lenovo P51 with Windows 10 and a 32 GB ram.
I’m trying to install the SKLearn module in Python.
I’ve written pip install scikit-learn –verbose in the terminal to do so. It’s able to install the build dependencies, the build wheel, and the backend dependencies. But when it gets to the preparing metadata stage, I get an error saying that preparing metadata(pyproject.toml) did not run successfully. How can I fix this error so that I can install SKLearn?

2

Answers


  1. You were hoping pip would find a binary wheel,
    and it didn’t work out for your platform.

    I usually install via
    conda,
    for a smoother binary install experience.

    Login or Signup to reply.
  2. According to this similar issue in github, I found a possible solution.

    You could try to set the environment variable:

    SETUPTOOLS_USE_DISTUTILS=stdlib
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search