On Wed, Sep 6, 2017 at 10:41 PM, Andrej Viktorovich <viktorovichand...@gmail.com> wrote: > Hello, > > I have 32Bit and 64Bit installations on my Windows 10 machine. I do import > importlib in both of them. > > 32bit works fine while 64bit prints error: > >>>> import importlib > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "C:\Users\me\AppData\Local\Programs\Python\Python36-32\Lib\importlib\__init__.py", > line 57, in <module> > import types > File "C:\Users\me\AppData\Local\Programs\Python\Python36-32\Lib\types.py", > line 171, in <module> > import functools as _functools > File > "C:\Users\me\AppData\Local\Programs\Python\Python36-32\Lib\functools.py", > line 23, in <module> > from weakref import WeakKeyDictionary > File > "C:\Users\me\AppData\Local\Programs\Python\Python36-32\Lib\weakref.py", line > 12, in <module> > from _weakref import ( > ImportError: cannot import name '_remove_dead_weakref'
It appears that your 64-bit binary is trying to load up the libraries from the 32-bit installation. How did you go about installing each one? I'm not 100% sure, but I think that having two different versions of CPython X.Y isn't supported on Windows. ChrisA -- https://mail.python.org/mailman/listinfo/python-list