Duplicity 安装错误:ImportError:没有名为 duplicity 的模块

Duplicity 安装错误:ImportError:没有名为 duplicity 的模块

无法解释 duplicity 的错误信息:

ddd@T400:~$ duplicity -vi ~/Dropfold swift://bkp_dropbox
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 61, in <module>
    from duplicity import log
ImportError: No module named duplicity

这只是 apt 的 vanilla 安装。它在 Ubuntu 14.04 上运行良好。看起来安装失败了(我已经尝试将其删除并重新安装)。

有什么想法吗?谢谢。

答案1

如果您安装了 Anaconda,则可能需要强制系统使用 Python。

去做这个:

export PATH="/usr/bin:$PATH"

答案2

我回答了自己的问题...这是由于 Anaconda 造成的。我需要强制系统使用 Python。

相关内容