简体   繁体   中英

Anaconda 64bit and Pyinstaller: Create exe for 32bit system

I use Windows 10 64bit alongside with Anaconda3 64bit. This yields a Python 64bit installation. With that, I'm creating.exe files using PyInstaller, but obviously, it packs the Python 64bit version into the.exe, so this will NOT run on a 32bit machine.

To make an exe for a 32bit machine, I'd need to use Python 32bit. Is there a way to create a 32bit Python environment alongside my current Anaconda installation? Or would I need to download yet another Anaconda as second installation, which is kinda ugly IMHO?

Thanks!

  1. init "Anaconda Prompt"
  2. exec set CONDA_FORCE_32BIT=1 . This command set a temp env var for current terminal and switch the conda to 32-bit mode
  3. use conda to create a new python env and it will be 32-bit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM