2017-02-22 184 views
0

我已经使用pip install mechanize安装机械化,这样当我在命令提示符下输入时,响应是:Requirement already satisfied: mechanize in c:\users\wwl\anaconda3\lib\site-packages安装python软件包

然而,当我在jupyter笔记本式import mechanize,它给出了一个错误:

ImportError: No module named '_mechanize'

我哪里出错了?

+0

你是什么版本的Python吗?机械化只支持python 2. * – ocelot

+0

我不知道。我在Python 3.感谢提及。 – wwl

+1

不用担心:) [这是一些替代方法](https://www.reddit.com/r/Python/comments/3dvq25/are_there_any_better_alternatives_to_mechanize/) – ocelot

回答