Xu Ruoxin
Xu Ruoxin

Reputation: 1

How to install third-party modules on python3

There are several versions of python on my mac OS X system. I just installed beautiful soup4 on python2.7.6, but how can I install the same module on the version 3.4.3?

Upvotes: 0

Views: 144

Answers (2)

Daniel Roseman
Daniel Roseman

Reputation: 599470

You should always use a virtualenv. For each project, install the requirements you need inside that project's own virtualenv.

Upvotes: 1

arodriguezdonaire
arodriguezdonaire

Reputation: 5562

From the 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

Upvotes: 1

Related Questions