2

私は cx_Freeze に非常に慣れていませんが、pyHooks を使用しようとしたときに機能しませんでした。ここに私のsetup.pyコードがあります:

from cx_Freeze import setup, Executable

includes=["re", "pyHook"]

exe = Executable(
script="hello.py",
base="Win32Gui",
targetName = "hello.exe"
)

setup(
name = "hello",
version = "1",
description = "description",
options = {"build_exe": {"includes":includes}},
executables = [exe]
)

exeファイルを実行すると、エラーは次のように表示されます。

ImportError: 名前 cpyHook をインポートできません

4

1 に答える 1