[英]Py2exe [Errno 2] No such file or directory: 'm'
我正在嘗試使用 py2exe 創建一個使用 py2exe 的簡單 exe。 不幸的是,當我嘗試創建一個簡單的 py2exe 時,它失敗了。
我的 Python 腳本是:
print("Hello World")
我的設置腳本是:
from distutils.core import setup
import py2exe
setup(console="mouse-check.py")
當我運行py py2exe-installer.py py2exe
時,我得到以下 output:
C:\Users\...\Python\py2exe-installer.py:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.core import setup
running py2exe
error: [Errno 2] No such file or directory: 'm'
我在 Windows 上使用Python 3.10.4
。
我的py2exe版本是: 0.11.1.1
我的目錄結構是:
/Python
- py2exe-installer.py
- mouse-check.py
有人知道“m”在這里指的是什么嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.