I have installed ipython on my Ubuntu and then I have installed mechanize on the same.
I can able to do
import mechanize
from command prompt. But when I say import mechanize from ipython, it says as no module named mechanize.
I have installed ipython on my Ubuntu and then I have installed mechanize on the same.
I can able to do
import mechanize
from command prompt. But when I say import mechanize from ipython, it says as no module named mechanize.
I would do this...
In the console:
>>> import mechanize
>>> mechanize.__file__
Some/path/to/mechanize
Then in IPython,
[1] import sys
[2] print sys.path
See if the /Some/path/to/mechanize is in your sys.path.