-
Notifications
You must be signed in to change notification settings - Fork 15
Description
作者您好,非常感谢你们团队的工作。在配置环境时,我遇到了一些问题,当下载requirement.txt中的cyminiball包时,遇到了以下错误:
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting cyminiball
Downloading cyminiball-2.1.1.tar.gz (183 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 183.8/183.8 kB 389.6 kB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.0 in /root/miniconda3/envs/PointMamba_SJ/lib/python3.10/site-packages (from cyminiball) (1.26.4)
Building wheels for collected packages: cyminiball
Building wheel for cyminiball (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cyminiball (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/cyminiball
copying src/init.py -> build/lib.linux-x86_64-cpython-310/cyminiball
copying src/_compat.py -> build/lib.linux-x86_64-cpython-310/cyminiball
running build_ext
building 'cyminiball._wrap' extension
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/src
gcc -pthread -B /root/miniconda3/envs/PointMamba_SJ/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /root/miniconda3/envs/PointMamba_SJ/include -fPIC -O2 -isystem /root/miniconda3/envs/PointMamba_SJ/include -fPIC -I/tmp/pip-install-4w1yp_4f/cyminiball_5ef798674efc46399afcee8ce7e1a0a1 -I/tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include -I/root/miniconda3/envs/PointMamba_SJ/include/python3.10 -c src/_miniball_wrap.cpp -o build/temp.linux-x86_64-cpython-310/src/_miniball_wrap.o -std=c++11
In file included from /tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1909,
from /tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12,
from /tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include/numpy/arrayobject.h:5,
from src/_miniball_wrap.cpp:741:
/tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with "
| ^~~~~~~
In file included from /root/miniconda3/envs/PointMamba_SJ/include/python3.10/Python.h:74,
from src/_miniball_wrap.cpp:35:
src/_miniball_wrap.cpp: In function ‘PyObject* __pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr*)’:
src/_miniball_wrap.cpp:8712:41: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘subarray’
8712 | __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
| ^~~~~~~~
/root/miniconda3/envs/PointMamba_SJ/include/python3.10/object.h:112:41: note: in definition of macro ‘_PyObject_CAST’
112 | #define _PyObject_CAST(op) ((PyObject*)(op))
| ^~
src/_miniball_wrap.cpp:1523:27: note: in expansion of macro ‘Py_INCREF’
1523 | #define __Pyx_INCREF(r) Py_INCREF(r)
| ^~~~~~~~~
src/_miniball_wrap.cpp:8712:5: note: in expansion of macro ‘__Pyx_INCREF’
8712 | __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
| ^~~~~~~~~~~~
src/_miniball_wrap.cpp:8713:38: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘subarray’
8713 | __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
| ^~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cyminiball
Failed to build cyminiball
ERROR: Could not build wheels for cyminiball, which is required to install pyproject.toml-based projects
当我使用python3.10.13和numpy1.26.4时,就无法下载cyminiball,将python改成3.8.0时,numpy依旧使用1.26.4,cyminiball可以正常下载编译,但是python3.8会和requirement中的其他包冲突。我想请问你们是否遇到了这种问题,该如何解决?
真诚请求您的回复