ImportError: cannot import name _remove_dead_weakref

dieter dieter at handshake.de
Sat May 5 03:12:15 EDT 2018


joseph pareti <joepareti54 at gmail.com> writes:
> thank you for the advice: depending on the value of PYTHONPATH (version
> 2.7, 3.5, or unset), tensorflow stops with 3 different error traps

"PYTHONPATH" usually is used when you have private Python modules
not installed at the standard place. Nowadays, you can use
a so called "virtual environment" for your local installations.
Look whether "virtualenv" (or "venv") is installed in your environment.
It can be used to create a virtual environment.
Then install your own modules in this virtual environment --
ensuring not to mix things for Python 2 and Python 3.
Finally unset "PYTHONPATH" and run your Python in the virtual environment.




More information about the Python-list mailing list