简体   繁体   English

如何在64位PC中制作Python中的32位应用程序

[英]How to make 32-bit applications in Python in a 64-bit PC

I use pyinstaller or cx_Freeze whenever I want my Python file to convert it into a.exe package, but the problem is, my PC is 64-bit, and if I make that application, it only runs on a 64-bit PC, that's why I want to know, is there a way to develop 32-bit applications on a 64-bit PC using any module or anything?每当我想要我的 Python 文件将其转换为 a.exe package 时,我都会使用 pyinstaller 或 cx_Freeze,但问题是,我的 PC 是 64 位的,如果我制作该应用程序,它只能在 64 位 PC 上运行,为什么我想知道,有没有办法使用任何模块或任何东西在 64 位 PC 上开发 32 位应用程序? Please I really need an answer!请我真的需要一个答案!

Download, install a 32-bit version of python and use that instead of the 64 bit python that you are using.下载,安装 python 的 32 位版本,并使用它代替您正在使用的 64 位 python。

After installing both a 32 bit and 64 bit version of Python try running the following command to create the required exe distributable.安装 Python 的 32 位和 64 位版本后,尝试运行以下命令来创建所需的 exe 可分发文件。

python -m pyinstaller {args}

Or it can be或者它可以是

python3.5 -m pyinstaller {args}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Macintosh Python:64位与32位问题 - Macintosh Python: 64-bit vs 32-bit problems 从32位python调用64位控制台 - Invoking 64-bit console from 32-bit python 如何在Snow Leopard和其他32位/ 64位问题上强制Python为32位 - How do I force Python to be 32-bit on Snow Leopard and other 32-bit/64-bit questions 如何检查安装的Anaconda是32位还是64位? - How to check if the installed Anaconda is 32-bit or 64-bit? 我在x86-64 PC上运行32位Windows。 我应该下载32位还是64位Python安装程序? - I'm running 32-bit Windows on an x86-64 PC. Should I download the 32-bit or 64-bit Python installer? 32 位 pyodbc 和 32 位 Python 是否可以与 64 位 MS 访问数据库通信? - Is it possible for 32-bit pyodbc and 32-bit Python to talk to 64-bit MS access database? 在 64 位 Python 进程中加载 32 位和 64 位 dll - Loading 32-bit and 64-bit dll's in the 64-bit Python process 如何在64位CentOS 6上编译和运行32位Python? - How do I compile and run 32-bit Python on 64-bit CentOS 6? 如果使用 -t 选项,PIP 如何知道 Python 是 32 位还是 64 位? - If using the -t option, how does PIP know if the Python is 32-bit or 64-bit? 如何使用 virtualenv 在 Windows 中使用 32 位和 64 位 Python? - How can I use virtualenv to use 32-bit and 64-bit Python in Windows?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM