简体   繁体   中英

How can I have two different environments within Anaconda? (both Python 3.7, one 32bit and one 64bit)

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

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.

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