如何在python3上安装第三方模块

2024-06-16 13:13:46 发布

您现在位置:Python中文网/ 问答频道 /正文

在我的macosx系统上有几个python版本。 我刚刚在python2.7.6上安装了漂亮的soup4,但是如何在3.4.3版本上安装相同的模块呢?你知道吗


Tags: 模块版本系统macosxsoup4
1条回答
网友
1楼 · 发布于 2024-06-16 13:13:46

你应该经常使用虚拟电视。对于每个项目,在该项目自己的virtualenv中安装所需的需求。你知道吗

网友
2楼 · 发布于 2024-06-16 13:13:46

BeautifulSoup Official Documentation

Beautiful Soup 4 is published through PyPi, so if you can’t install it with the system packager, you can install it with easy_install or pip. The package name is beautifulsoup4, and the same package works on Python 2 and Python 3.

$ easy_install beautifulsoup4

$ pip install beautifulsoup4

相关问题 更多 >