Skip to content
Advertisement

ImportError: No module named ‘encodings’

I recently reinstalled ubuntu and did upgrade to 16.04 and cannot use python:

JavaScript

At this point, python itself doesn’t work

JavaScript

Even this suggestion is no longer working:

JavaScript

Every every I fix it one way, it comes back again. Several answers help to fix it temporarily, but not for good. I have reinstalled python and python3 several times. What can I do from here?

Advertisement

Answer

For Python-3 try removing virtual environment files. And resetting it up.

JavaScript

https://wiki.ubuntu.com/XenialXerus/ReleaseNotes#Python_3 edit fo

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement