On 2017-09-06 14:00, Chris Angelico wrote:
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.
I have both 64-bit and 32-bit Python 3.6 installed on Windows 10, as
well as older versions. They all work without a problem.
--
https://mail.python.org/mailman/listinfo/python-list