无法为clickhouse-connect python模块编译C扩展



安装python模块时意外卡住clickhome -connect

Building wheels for collected packages: clickhouse-connect
Running setup.py bdist_wheel for clickhouse-connect ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-4fl5kcjv/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-o14i2v_m --python-tag cp37:
Using Cython 3.0.0b1to build cython modules
Unable to compile C extensions for faster performance due to usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'bdist_wheel', will use pure Python
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

和绝对没有想法:(

细节:

  • Python 3.7.3(默认,Oct 31 2022, 14:04:00) [GCC 8.3.0] on linux
  • pip 18.1从/usr/lib/python3/dist-packages/pip (python 3.7)
  • python3-dev - installed.
  • clickhouse-connect using pure Python install successfully.

我已经尝试过从源代码(github)构建模块,但是再一次,没有运气。

正如@MattDMo在评论中所说,我的pip已经过时了。

python3 -m pip install --upgrade pip

解决了问题。

相关内容

  • 没有找到相关文章

最新更新