❌ 错误:ModuleNotFoundError: No module named ‘setuptools.command.test‘ 老旧包的 setup.py 引用了已删除的模块

❌ 错误:ModuleNotFoundError: No module named ‘setuptools.command.test‘ 老旧包的 setup.py 引用了已删除的模块
报错原文$ pip3.9 install doubles==1.4.0 Collecting doubles==1.4.0 Using cached doubles-1.4.0.tar.gz (16 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─ [17 lines of output] ... File "string", line 2, in module ModuleNotFoundError: No module named 'setuptools.command.test' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-errorGitHub 真实案例pypa/setuptools#4519— 38