ModuleNotFoundError:通过运行.exe文件,没有名为“ execnet.rsync”的模块

时间:2020-10-22 17:22:39

标签: pytest pyinstaller pytest-xdist

hello.py文件中有代码:

split = int(str(var).split('.'))

我有一个虚拟环境,其中安装了所有模块。我已经使用pyinstaller hello.py

创建了可执行文件 在dist / hello中创建的

hello.exe文件。运行此hello.exe文件时,出现错误:

def test(arg):
    pytest.main(args=arg, plugins=[pytest_html.plugin, xdist.plugin])
if __name__ == '__main__':
    arg = ['test_modules', '-n', '2']
    test(arg)

有人可以帮我解决吗?

0 个答案:

没有答案