2017-02-22 185 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

回答