How to get BeautifulSoup in PyCharm?

How to get BeautifulSoup in PyCharm?

So I'm using Python 2.

7, and PyCharm 3.1. But there's something I want to scrape from a site. I've already figured out how to do the scraping, except for BeautifulSoup in PyCharm. When I import it and try to use .select and .tables, it tells me I have something wrong. I've seen this happen with other python 3.x libraries as well. Is it not a part of the packages I've installed?
I installed beautifulsoup using pip install and added sys.path.append('C:python27libsite-packages') at the beginning of my script. When I try to run my program it tells me that it can't find the file 'bs4'. I've looked at a couple of posts but nothing works so far. All I want is beautifulsoup 4 to be working in pycharm for easier debugging! Thanks!
Also is there anything special about importing it from my site-packages? I would think it would work the same way from anywhere else. EDIT: There's more context. See below.

From bs4 import BeautifulSoup. Import urllib.request import sys. From requests import Session. #def downloadpage(url): url = urllib.urlopen(') soup = BeautifulSoup(url, "html.parser") print soup. You need to add BeautifulSoup on top: Then you can do: soup = BeautifulSoup(url, "html.parser") This is because it's not a module but rather an object so you first need to get it, see this answer.

How to install a package in PyCharm?

The only documentation I could find in the Interwebs, was on this website (). So far, this page didn't help me at all.

Can you please tell me how to add a new package? I am trying to do a tutorial, and that part of the tutorial requires the installation of a library. It is very simple actually. If you are in PyCharm Community Edition 2026, as @Karthik said, click on File -> New -> Import Project. In the next step, you can search for any repository like PyPI. If you don't have one of the repositories installed yet, it won't be shown on the search bar. To add a repository to your list of available repositories, click on the button Add New., choose the Package format, and make sure the desired repository is chosen.

Related Answers

Is PyCharm Community Edition free download?

I think you're confused about PyCharm CE. It's a fre...

Is PyCharm a free IDE?

It is widely used by the developers as it helps you to do the coding very e...

Is it safe to download PyCharm?

If you want to run the Python interpreter, you can use the Py...