2

What I need

I require a 32bit conda environment, in addition to the current 64bit in my Anaconda distribution.

What I've tried

I've followed the step's within this answer. However set CONDA_FORCE_32BIT=1 did not work in my case, I've verified this by checking the bit version after build. Comments in the answer and other sources suggest that it may have been removed.

I've also tried installing 32bit version Miniconda but I am having an issue changing environments because they both come under the same name (base).

Any suggestions will be helpful!

Thanks

Lewis
  • 2,718
  • 1
  • 11
  • 28
  • Does this answer your question? [Using multiple Python engines (32Bit/64bit and 2.7/3.5)](https://stackoverflow.com/questions/33709391/using-multiple-python-engines-32bit-64bit-and-2-7-3-5) This should question should be consolidated. – merv Jan 12 '21 at 18:56

1 Answers1

4

You can specify the 32-bit channel manually using the --channel/-c flag when using conda create.

You just need to supply the correct url for the channel and subdir you want to use. The --override-channels flag prevents the 64-bit channels from being pulled in (shouldn't matter, but your never know).

conda create -n py32 python=3.7 -c https://repo.anaconda.com/pkgs/main/win-32 --override-channels
conda activate py32

In your case, I would recommend installing the 64-bit version of Anaconda or Miniconda, then create the 32-bit environment.

James
  • 32,991
  • 4
  • 47
  • 70
  • 1
    Minor note: Technically, you don't need the full channel URL - the subdir is sufficient, e.g., `conda create -n py37 -c pkgs/main/win-32 python=3.7` – merv Sep 19 '19 at 14:57
  • I think it would be better to write your novel answer up in [this older duplicate question](https://stackoverflow.com/questions/33709391/using-multiple-python-engines-32bit-64bit-and-2-7-3-5), and then we should close this one as a duplicate. – merv Sep 19 '19 at 15:17