我正在尝试运行
python3-config --extension-suffix
作为使用 Pybind11 的一部分,但我不断收到以下错误:
zsh: command not found: python3-config
我尝试使用 python3.8-config 但即使这样也不起作用。解决这个问题的最佳方法是什么? (我在 Mac 上运行这个)。
默认情况下,macOS 中的 Python 出厂时没有
python3-config
。
您应该从 python.org 手动安装 Python 或使用 Homebrew 安装:
brew install python