简体   繁体   English

使用 Homebrew 在 Mac 上使用 Python 3 安装 GDB

[英]Installing GDB with Python 3 on Mac with Homebrew

I tried to do the following:我尝试执行以下操作:

brew -v install gdb --with-python=python3

but I get a warning:但我收到警告:

Warning: gdb: this formula has no --with-python= option so it will be ignored!

This is normal, there is no --with-python=python3 option.这是正常的,没有--with-python=python3选项。 You can obtain all available options with brew info gdb .您可以使用brew info gdb获取所有可用选项。 You will obtain:您将获得:

==> Options
--with-all-targets
    Build with support for all targets
--with-guile@2.0
    Build with guile@2.0 support
--with-python
    Use the Homebrew version of Python; by default system Python is used
--with-python@2
    Build with python@2 support
--with-version-suffix
    Add a version suffix to program

There is --with-python option.--with-python选项。

--with-python
    Use the Homebrew version of Python; by default system Python is used

Try to brew -v install gdb --with-python after set your deafult python version.设置默认的python版本后,尝试brew -v install gdb --with-python

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM