为 python 3.4 安装机械化
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31774756/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing mechanize for python 3.4
提问by Carnageta
I'm trying to retrieve the mechanize module for python 3.4. Can anybody guide me in the right direction and perhaps walk me through the steps that I would need to take in order to make the correct installation? I'm currently using Windows 10.
我正在尝试检索 python 3.4 的机械化模块。任何人都可以指导我朝着正确的方向前进,也许可以引导我完成正确安装所需的步骤?我目前使用的是 Windows 10。
回答by Carlos Guzman
unfortunately mechanize only works with Python 2.4, Python 2.5, Python 2.6, and Python 2.7.
不幸的是,机械化仅适用于 Python 2.4、Python 2.5、Python 2.6 和 Python 2.7。
The good news is there are other projects you can take a look at: RoboBrowser, MechanicalSoup
好消息是您可以查看其他项目: RoboBrowser、MechanicalSoup
There are more alternatives in this thread as well: Are there any alternatives to Mechanize in Python?.
此线程中还有更多替代方案: 是否有任何替代 Python 中的机械化?.
回答by tgates42
(edit) Mechanize 0.4.0 was release a few days ago (16th Jan 2019) and includes the python3 fixes from the mechanize3 fork so you could consider just updating to the latest mechanize release.
(编辑)Mechanize 0.4.0 于几天前(2019 年 1 月 16 日)发布,包括来自 mechanize3 分支的 python3 修复,因此您可以考虑更新到最新的机械化版本。
pip install -U mechanize