-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conda is mixing 32-bit and 64-bit packages (platform is not stored in the conda environment) #1744
Comments
Yikes! Good catch, and thanks for the simple example. We will work on this as a high priority issue. |
Thanks! :) |
Is there any update on this? The CONDA_FORCE_32BIT variable is very sparsely documented in overall (as in I remembered it exists, but the first 10 Google terms that broadly described what I was looking for (e.g. "conda build force 32 bit) didn't deliver any hits on this). |
Would it be possible to add the architecture (32/64 bit) to the environment.yml? This would make the definition inside environment.yml complete? The other options would maybe be to add another key in environment.yml
This (environment_variables) would be executed before everything else. |
Set up a 32bit python environment so I could run some legacy scripts in python 2.7 Traceback (most recent call last): It looks like the interpreter is forgetting that it is supposed to be using the 32 bit environment and is defaulting back to my root environment which is 64 bit. |
IMHO all this Why shouldn't someone on Windows be able to install and try an environment containing Linux software under Windows Subsystem for Linux, or a Linux or macOS user be able to do the same using Wine? Sure many things won't work well and we'd probably not have time to look into such esoteric setups, but internally we need to be able to do this anyway to support cross-compilation. cc @kalefranz. |
@AldoMaine, your best way to avoid issues currently is to install the 32-bit Miniconda and run it from C:\Windows\SysWOW64\cmd.exe. This will avoid all sorts of potential problems. |
Thanks. Miniconda and SysWOW64 did the trick. Now if I can just get out of dll hell.... |
Can I suggest Linux or macOS? ;-) (I say that jokingly as a big fan of Windows though) |
No doubt Linux would be better for this task (and many others). Unfortunately I've been on the Microsoft bandwagon for so many years it's hard to get off. Maybe I need virtual machines so I can use the OS that best fits the task. I recently installed Debian Linux on an older PC to explore it's capabilities but my main rig runs Windows 10. |
@mingwandroid has it right that |
How to use it in ubuntu 16.04? |
Hi there, thank you for your contribution to Conda! This issue has been automatically locked since it has not had recent activity after it was closed. Please open a new issue if needed. |
There seems to be an inconsistency about the usage of CONDA_FORCE_32BIT.
This is in Windows, look at this sequence of commands:
As you can see, it is currently brittle: if I forget this environment variable (this may be common if I have multiple environments, some in 64-bit and some in 32-bit), then conda will silently mix 64-bit packages with 32-bit packages.
It seems that CONDA_FORCE_32BIT should only be used at environment creation, and ignored on activation.
The text was updated successfully, but these errors were encountered: