no module named requests python3 code example

Example 1: ModuleNotFoundError: No module named 'requests'

pip install requests

Example 2: import requests, sys, urllib, reImportError: No module named requests

Hack the box - buff 

Guys, this problem took me 1 day to find the problem and the issue is the
script needs python 2.7 and is missing libraries.
You'll need to install them.

Open terminal:
Install Python 2.7
sudo apt-get install python-pip

Install pip
sudo pip install requests

Install colorama
sudo pip install colorama

Run exploit:
python exploitname.py url

Happy Hacking!

Example 3: ModuleNotFoundError: No module named 'requests'

python3.6 -m pip install requests

Tags:

Misc Example