安装webbrowser模块时找不到满足要求的版本。 (蟒蛇)

时间:2017-10-27 23:36:02

标签: python install python-webbrowser

尝试安装模块。特别是webbrowser模块。我有这个问题出现了几次,但我无法解决它。

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

webbrowser模块作为标准库的一部分出现在Python 2& Python 3因此无需使用pip安装它。

测试此模块是否正常工作的最佳方法是打开python shell并运行:

import antigravity

这是一个复活节彩蛋,使用webbrowser模块打开一个新的浏览器标签,打开一个xkcd漫画,描绘import antigravity

的讽刺用法

希望这有帮助