安装cx®Freez

2024-09-28 01:27:44 发布

您现在位置:Python中文网/ 问答频道 /正文

当我需要将多个.py文件(而不仅仅是)转换为一个.exe文件以便与朋友共享时,我遇到了这个问题。我尝试过使用py2exe、pyInstaller等。我最后一次尝试是使用cx_Freeze,因为它是支持Python3.7的最新程序。但是现在我不能用pip安装它,我遇到了这个问题: pip install cx_Freeze

Command "C:\Users\krawz\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\krawz\\AppData\\Local\\Temp\\pip-install-j4h9docf\\cx-Freeze\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\krawz\AppData\Local\Temp\pip-record-3_cvdrfd\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\krawz\AppData\Local\Temp\pip-install-j4h9docf\cx-Freeze\


所以,我在google上搜索了一下,找到了用wheel解决问题的方法,但也没用: install pip install cx_Freeze-5.1.1-cp37-cp37m-win_amd64.whl

cx_Freeze-5.1.1-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.

可能是我做错了什么,或者把多个.py文件编译成一个.exe是一种更简单的方法?在


Tags: installpip文件pylocalcoderecordexe

热门问题