Python Package Installation Request

I installed ipython on my Ubuntu and then I installed the mechanism on the same.
I can do

import mechanize 

from the command line. But when I say import mechanization from ipython, it says that no module named mechanize.

+4
source share
1 answer

I would do it ...

In the console:

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

Then in ipython

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

See if the path / Some / path / to / mechanize is in your sys.path.

+4
source

Source: https://habr.com/ru/post/1403806/


All Articles