Zabbix python script does not see modules, what's wrong?

You need to configure zabbix in telegram the script, based on Ubuntu 16.04, zabbix-server 3.4. Console works perfectly, delivers messages from the bot.
But if the message is sent from zabbix, you get a send failed:
"ImportError: No module named requests"
Updated packages in the OS, updated the pip and did a pip install requests pip3 install requests, but the package was already installed. In any case, after rebooted the server, but the result is the same, the error remains.
I don't know much about Python, tell me, what in this case I did wrong and where you need to install the requests module?
March 12th 20 at 08:12
2 answers
March 12th 20 at 08:14
Solution
pip install requests

Install the packages for the current user. Log in to the system under the user zabbix runs and install packages for it.
March 12th 20 at 08:16
Run on behalf of the user Zabbix script for test

Find more questions by tags ZabbixUbuntuPython