在JupyterLab中安装griddb-python失败的问题求助(WSL/Ubuntu+Docker环境)
在JupyterLab中安装griddb-python失败的问题求助(WSL/Ubuntu+Docker环境)
我正在JupyterLab笔记本里尝试安装griddb-python,但一直遇到错误。我的GridDB是运行在WSL/Ubuntu集成的Docker环境里的。
我执行的安装命令是:
%pip install griddb-python
得到的错误输出如下:
Collecting griddb-python Using cached griddb_python-0.7.6.tar.gz (52 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Building wheels for collected packages: griddb-python Building wheel for griddb-python (setup.py): started Building wheel for griddb-python (setup.py): finished with status 'error' Running setup.py clean for griddb-python Failed to build griddb-python Note: you may need to restart the kernel to use updated packages. error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [24 lines of output] running bdist_wheel The [wheel] section is deprecated. Use [bdist_wheel] instead. C:\Users\lukes\anaconda3\Lib\site-packages\setuptools\_distutils\cmd.py:111: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated !! ******************************************************************************** With Python 2.7 end-of-life, support for building universal wheels (i.e., wheels that support both Python 2 and Python 3) is being obviated. Please discontinue using this option, or if you still need it, file an issue with pypa/setuptools describing your use case. By 2025-Aug-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. ******************************************************************************** !! self.finalize_options() running build running build_ext building '_griddb_python' extension swigging src/griddb.i to src/griddb_wrap.cpp swig.exe -python -DSWIGWORDSIZE64 -c++ -outdir . -Isrc -o src/griddb_wrap.cpp src/griddb.i error: command 'swig.exe' failed: None [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for griddb-python ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (griddb-python)
经过一番排查,我觉得这应该和某个依赖库有关。我已经更新了numpy、pandas,也安装了SWIG,甚至重启过环境,但还是遇到同样的错误。
我的环境配置如下:
- Windows 10 + Docker v4.36.0(集成WSL/Ubuntu)
- Anaconda 24.11.1
- Python 3.9.21
- SWIG 4.2.0
- NumPy 1.26.4
- Pandas 2.2.2
有没有大佬知道怎么解决这个问题呀?
备注:内容来源于stack exchange,提问作者Luke Summerville
相关产品推荐
相关产品推荐

