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)
有人可以帮我解决吗?