Python 3.6 import requests

import, python, python-3.6

Solution

Run following command on your virtual environment:

sudo pip install requests

Problem

Hi im pretty new to python and im following some tutorials online. im using the latest version of python 3.6 when i try and import requests or bs4 is says ModuleNotFoundError, No module named 'requests' although it is installed i can see it in site packages i used pip to install whatever i seem to do it doesnt seem to be able to find it here is the code ``` import requests from bs4 import BeautifulSoup import operator def start(url): word_list = [] source_code = requests.get(url).text soup = BeautifulSoup(source_code) for post_text in soup.findAll('div'): content = post_text.string words = content.lower().split() for each_word in words: print(each_word) word_list.append(each_word) start('http://localhost/budget_app/dashboard.php') ``` this is the error ``` ModuleNotFoundError, No module named 'requests' ```

Original source