I have a python script and begins as (just a part of it) -
import requests
from bs4 import BeautifulSoup
import itertools
import io
import re
import smtplib, os
Now, when I run it, it says missing requests module.
I've downloaded & installed 3 versions of Python from python.org, but still it seems that the packages are not installed. Can anyone tell me how to install modules using IDLE on Windows 7.
Versions I have - 2.7.8, 3.3.5, 3.4.2.
Under present versions of Python (version 3.4 or above), do the following:
Windows
At the command prompt enter
py -3 -m pip install BeautifulSoup4
Linux
At the terminal enter
sudo python3 -m pip install BeautifulSoup4
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