w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Anaconda Python 32-bit is trying to load Anaconda 64-bit libraries

I believe my PYTHONHOME environment variable was set to C:Anaconda (the 64-bit installation). When I attempted to run C:Anaconda32python.exe, it saw the PYTHONHOME variable and attempted to use that directory as the location to load libraries from. This is explained in the Python Docs here.

By removing PYTHONHOME, I am able to run Anaconda 32-bit and 64-bit side by side. Whichever occurs first in my path will be automatically run when typing python at the command prompt. When I open either interpreter, I get the correct version and bit information and they load the correct libraries. Also because I selected to set each as the default python during installation, the 32-bit and 64-bit python registry keys were set allowing installers to find the corresponding installation.

If you want to use multiple versions of Python side by side, I recommend removing PYTHONHOME and PYTHONPATH if you don't need them to avoid an environment clashing between the different installations. I could be wrong here, but this appeared to solve my problem.

To be completely explicit I installed to C:Anaconda32 and C:Anaconda64. That way if I see anything with just C:Anaconda I know it's incorrect.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.