1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] How can I run pytest in local repository (scikit-learn)

Discussão em 'Python' iniciado por Stack, Outubro 25, 2024 às 05:12.

  1. Stack

    Stack Membro Participativo

    I want to run

    $ pytest


    to test a new feature in the codebase (scikit-learn). But when I run pytest, I get error, "scikit-learn is not built correctly". So I try to build it by following the instructions here, by using this

    $ pip install --editable . --verbose --no-build-isolation --config-settings editable-verbose=true


    but this does not work. Any other way to build scikit-learn?

    This what I tried:

    I downloaded vs_buildtools.exe with "Desktop development with C++". Then

    C:> SET DISTUTILS_USE_SDK=1
    C:> "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64


    I used "Microsoft Visual Studio 2022" instead of "Microsoft Visual Studio 2019". Then,

    $ pip install --editable . --verbose --no-build-isolation --config-settings editable-verbose=true

    Continue reading...

Compartilhe esta Página