Skip to main content
Solved

Python Script - Command

  • October 30, 2023
  • 1 reply
  • 367 views

Forum|alt.badge.img+8

Hi,

CentOS 7 / Centreon 22.10.14

 

i want to start / Test a python script.

 

 /usr/bin/env python3 /tmp/Query.py

 

Error:

ModuleNotFoundError: No module named 'requests'

 

python --version
Python 2.7.5

 

What can i do ?

Thanks

 

Best answer by carnabil

Hi,

Have you tried?

 

sudo pip3 install requests

 

1 reply

Forum|alt.badge.img+8
  • Steward ***
  • Answer
  • October 31, 2023

Hi,

Have you tried?

 

sudo pip3 install requests