What does the "No module named." error mean and how can I fix it?
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
from mechanize import Browser
File "mechanize\__init__.py", line 119, in <module>
from _version import __version__
ImportError: No module named _version
3
1 answers
The interpreter cannot find a module named _version
. Make sure that such a module actually exists and that at least one of the following is true:
- The module is located in the same directory as your script.
- The module is located in the current directory.
- The path to the module is present in the environment variable
PYTHONPATH
. - The path to the module is present in the
sys.path
list.
3
Author: eigenein, 2012-12-03 17:15:19