rsyncy icon indicating copy to clipboard operation
rsyncy copied to clipboard

How do I use this command in sudo

Open angadschawla opened this issue 2 years ago • 3 comments

Hello,

I installed this package using pip3 in sudo so that it installed for root user. I then use the command with sudo and get that the command is not found. How do I do this correctly?

Thanks!

angadschawla avatar Mar 28 '22 02:03 angadschawla

Do you mean with sudo? Like "sudo rsyncy -a ..."?

RemiZlatinis avatar Apr 26 '22 07:04 RemiZlatinis

@RemiZlatinis That is right! I did figure out a workaround by just directly pointing to the Python file for execution in script. Not sure if you know of a better method...

angadschawla avatar Apr 26 '22 12:04 angadschawla

In my system, I install it regularly as a normal user. ('pip install rsyncy') And it works just fine with the sudo prefix, both in terminal and scripts. The command not found for python modules was probably caused by an invalid installation. And that usually happens if you install with pip running as root. In general, is bad practice to install packages with sudo. And I suggest you use environments.

RemiZlatinis avatar Apr 26 '22 13:04 RemiZlatinis