I am taking an info storage and retrieval class, and to complete an assignment we need to download and use the beautifulsoup package for python. I haven't used Python in years, so I'm very rusty and cannot seem to figure out how to download a Python package. I'm using Python 3 and have Windows 10. Most of what I've read involves just typing something into the command line, but my windows command line (cmd) doesn't even acknowledge that I have python downloaded.
'python' is not recognized as an internal or external command, operable program or batch file.
I understand that pip is the go-to for downloading packages, but cmd doesn't acknowledge that either. Maybe I'm just missing something since I haven't used Python in so long...
I'm hoping that somebody can give me a step-by-step approach on how to download this package. Thanks in advance.
python -m pip install bs4.Now when using in your code, use from bs4 import BeautifulSoup.
First, you have to find where your Python installation is. Then, use the full path to python.exe to run pip, e.g.:
C:\Program Files\Python37\python.exe -m pip install bs4
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With