我想在运行Yosemite的Mac上安装ipdb。当我输入时:
sudo port install ipdb.
它给了我这个错误:
Error: Port ipdb not found
如何解决这个问题?
答案 0 :(得分:1)
如果您在ipdb
搜索sudo port install py34-ipdb
,那么您会发现其中有几个,每个MacPorts支持的Python版本都有一个。请注意,MacPorts项目正在弃用旧版本的Python,因此您应该选择Python 2.7或3.4版本。例如:
$ 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.
您还可以使用命令行界面进行搜索:
{{1}}