Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

requests is available on 16.04.

root@server-06:~# pip install requests
Collecting requests
  Downloading requests-2.13.0-py2.py3-none-any.whl (584kB)
    100% |████████████████████████████████| 593kB 1.8MB/s
Installing collected packages: requests
Successfully installed requests-2.13.0
root@server-06:~# pip list --format=columns | grep requests
requests     2.13.0
root@server-06:~#

and is working as expected

root@server-06:~# /usr/bin/env python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> quit()
root@server-06:~#
root@server-06:~# cat /etc/issue.net
Ubuntu 16.04.1 LTS
root@server-06:~#

and you already have it installed

ubuntu@adb1:~$ sudo -H pip install requests
Requirement already satisfied: requests in /usr/local/lib/python3.5/dist-packages

If I were you, I would remove and install requests and run your script as root.