ModuleNotFoundError, while running a python script as root user in Ubuntu

27 Views Asked by At

I need to ping a website. Im using pythonping module. I have installed a module globally. When i write the following command in the terminal: sudo python3 my_file.py i got the following error: import pythonping ModuleNotFoundError: No module named 'pythonping' What can it be? I was searching a lot and i didnt find any solutions, maybe i dont understand something :(

I tried to install this module with venv and then use shebag #!, but it didnt help again :(

0

There are 0 best solutions below