C:\>python -c "import sys; print(sys.executable)"
C:\python37\python.exe
C:\>pip -V
pip 10.0.1 from c:\python37\lib\site-packages\pip (python 3.7)
C:\>pip install -U beautifulsoup4
Requirement already up-to-date: beautifulsoup4 in c:\python37\lib\site-packages (4.6.0)
C:\>python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import bs4
>>> bs4.__version__
'4.6.0'
>>>
>>> from bs4 import BeautifulSoup
>>> soup = BeautifulSoup('html', 'html.parser')
0 Comments