Trying to use duplicity
on ubuntu 16.04 with Anaconda 2 installed, raise the following
Traceback (most recent call last):
File "/usr/bin/duplicity", line 61, in <module>
from duplicity import log
ImportError: No module named duplicity
Removing the Anaconda folder from my $PATH
solve the issue (it uses vanilla python, which python
yields /usr/bin/python
).
How to solve this issue without tampering with environment variables every time?
sudo
uses its ownsecure_path
(given in the sudoers file). But this probably isn't a good solution - running applications with root privileges might have unintended effects – Zanna Oct 24 '17 at 12:41