python3-config

问题描述 投票:0回答:1

我正在尝试运行

python3-config --extension-suffix
作为使用 Pybind11 的一部分,但我不断收到以下错误:

zsh: command not found: python3-config

我尝试使用 python3.8-config 但即使这样也不起作用。解决这个问题的最佳方法是什么? (我在 Mac 上运行这个)。

python-3.x pybind11
1个回答
0
投票

默认情况下,macOS 中的 Python 出厂时没有

python3-config

您应该从 python.org 手动安装 Python 或使用 Homebrew 安装:

brew install python
© www.soinside.com 2019 - 2024. All rights reserved.