查询有关安装Python包的信息

时间:2012-03-28 04:22:33

标签: python mechanize ipython

我已经在我的Ubuntu上安装了ipython,然后我就安装了机械机 我能做到

import mechanize
从命令提示符

。但是,当我说从ipython导入机械化时,它表示没有名为mechanize的模块。

1 个答案:

答案 0 :(得分:4)

我会这样做......

在控制台中:

>>> import mechanize
>>> mechanize.__file__
Some/path/to/mechanize

然后在IPython中,

[1] import sys
[2] print sys.path

查看/ Some / path / to / mechanize是否在sys.path中。

相关问题