0

我是 python 新手,正在尝试为这个项目运行单元测试: https ://github.com/matrix-org/synapse

我正在从项目的顶层运行 tox。我收到此错误:exceptions.ImportError: No module named pymacaroons

但是 pymacaroons 已经使用 pip 安装了。据我所知,我只有一个版本的 python。真的被这里难住了。

4

1 回答 1

2

tox创建自己的虚拟环境并根据tox.ini. pymacaroons未列出,tox.ini因此未安装。要安装它,请添加pymacaroonstox.ini(section , [testenv]key deps) 或添加-rrequirements.txt到.tox.inipymacaroonsrequirements.txt

于 2017-10-20T22:04:11.660 回答