davisking / dlib

A toolkit for making real world machine learning and data analysis applications in C++
http://dlib.net
Boost Software License 1.0
13.57k stars 3.38k forks source link

[Bug]: Installation failed in 'microcanda env' #2985

Closed 807502278 closed 3 months ago

807502278 commented 3 months ago

What Operating System(s) are you seeing this problem on?

Windows

dlib version

all

Python version

3.11

Compiler

c++17.9,cmake==3.25.2(python-env),setuptools==68.2.2~72.0.0

Expected Behavior

List the versions of other dependency packages that need to be used?

Current Behavior

I switched many versions of dlib and setuptools, but I still got this error message.
image

Steps to Reproduce

Directly "pip install dlib" from Python env

Anything else?

No response

vitali-yanushchyk-valor commented 3 months ago

Hey.

It's cause of new version setuptools where deprecated test command was removed

https://github.com/pypa/setuptools/issues/931

807502278 commented 3 months ago

I switched to a lower version yesterday but still got an error. Today, I restarted the system and it worked unexpectedly. Thank you!

vitali-yanushchyk-valor commented 3 months ago

I'm sure it's because setuptools restore the tests command https://setuptools.pypa.io/en/stable/history.html

davisking commented 3 months ago

Yeah. I just pulled the test stuff out of setup.py anyway. Nothing uses that stuff anymore so it's not needed.