0

我想在运行 Yosemite 的 Mac 上安装 ipdb。当我输入这个:

sudo port install ipdb.

它给了我这个错误:

Error: Port ipdb not found

如何解决这个问题?

4

1 回答 1

1

如果您在MacPorts 可用端口列表中搜索ipdb,您会发现那里有多个,每个 MacPorts 支持的 Python 版本都有一个。请注意,MacPorts 项目正在弃用旧版本的 Python,因此您应该选择 Python 2.7 或 3.4 版本。例如:

sudo port install py34-ipdb

您还可以使用命令行界面进行搜索:

$ port search ipdb
ipdb_select @0.3_1 (python)
    common files for selecting default ipdb version

py-ipdb @0.8 (python)
    An enhanced Interactive Python shell

py24-ipdb @0.8_1 (python)
    this port is only a stub and has been made obsolete by py27-ipdb

py25-ipdb @0.8_1 (python)
    this port is only a stub and has been made obsolete by py27-ipdb

py26-ipdb @0.8_1 (python)
    this port is only a stub and has been made obsolete by py27-ipdb

py27-ipdb @0.8 (python)
    An enhanced Interactive Python shell

py31-ipdb @0.8_1 (python)
    this port is only a stub and has been made obsolete by py34-ipdb

py32-ipdb @0.8_1 (python)
    this port is only a stub and has been made obsolete by py34-ipdb

py33-ipdb @0.8_1 (python)
    this port is only a stub and has been made obsolete by py34-ipdb

py34-ipdb @0.8 (python)
    An enhanced Interactive Python shell

Found 10 ports.
于 2014-12-11T06:05:06.137 回答