setuptools.installer and fetch_build_eggs are deprecated.

文章讲述了在执行某个项目setup.py时遇到的PEP517兼容性错误,报错提示需使用--usepep517。问题在于setuptools版本过高,作者建议将setuptools降级至58.2.0,提供了通过pipuninstall和install指定版本的解决方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Requirements should be satisfied by a PEP 517

报错环境:

在对某个项目setup.py进行运行时

报错提示需要使用pip install --use pep517

但这样根本没用

其实是setuptools版本过高,调整到58.2.0即可,我出现此报错时为最新版(69.2.0)

降低版本的方法:

 pip uninstall setuptools
pip install setuptools==58.2.0 

(cl) root@xjj:/opt/data/private/xjj/CLOCs-master/spconv# python setup.py bdist_wheel /root/anaconda3/envs/cl/lib/python3.8/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) running bdist_wheel running build running build_py copying spconv/test_utils.py -> build/lib.linux-x86_64-cpython-38/spconv copying spconv/__init__.py -> build/lib.linux-x86_64-cpython-38/spconv copying spconv/ops.py -> build/lib.linux-x86_64-cpython-38/spconv copying spconv/functional.py -> build/lib.linux-x86_64-cpython-38/spconv copying spconv/modules.py -> build/lib.linux-x86_64-cpython-38/spconv copying spconv/conv.py -> build/lib.linux-x86_64-cpython-38/spconv copying spconv/pool.py -> build/lib.linux-x86_64-cpython-38/spconv copying spconv/utils/__init__.py -> build/lib.linux-x86_64-cpython-38/spconv/utils running build_ext /opt/data/private/xjj/CLOCs-master/spconv/build/lib.linux-x86_64-cpython-38 Release -- Caffe2: CUDA detected: 11.1 -- Caffe2: CUDA nvcc is: /usr/local/cuda-11.1/bin/nvcc -- Caffe2: CUDA toolkit directory: /usr/local/cuda-11.1 -- Caffe2: Header version is: 11.1 -- Found cuDNN: v8.0.4 (include: /usr/local/cuda-11.1/include, library: /usr/local/cuda-11.1/lib64/libcudnn.so) -- /usr/local/cuda-11.1/lib64/libnvrtc.so shorthash is 3a20f2b6 -- Autodetected CUDA architecture(s): 7.5 -- Added CUDA NVCC flags for: -gencode;arch=compute_75,code=sm_75 CMake Warning at /root/anaconda3/envs/cl/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message): static library kineto_LIBRARY-NOTFOUND not found. Call Stack (most recent cal
最新发布
07-23
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值