After installing nltk you need to run the following command to install stop words
/Applications/Python 3.6/Install Certificates.command
for the poppler on Macos, us the following commands:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install poppler
Restart the machine after installing the requirements.txt