{{ message }}
[Solved] How can i solve this error "ModuleNotFoundError: No module named 'encodings'" under ubuntu20.04? #2147
Answered
by
smartin-pck
smartin-pck
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
smartin-pck
Apr 26, 2023
Replies: 1 comment 2 replies
-
|
I could fix it. Unfortunately, under Ubuntu, we cannot use the PYTHONHOME and PYTHONPATH variables. If you use these variables, you will get the "ModuleNotFoundError: No module named 'encodings'" error. If you use your own packages, such as creating a class structure and importing it into your project file, you must copy it to the "dist-packages" folder. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
smartin-pck
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I could fix it. Unfortunately, under Ubuntu, we cannot use the PYTHONHOME and PYTHONPATH variables. If you use these variables, you will get the "ModuleNotFoundError: No module named 'encodings'" error. If you use your own packages, such as creating a class structure and importing it into your project file, you must copy it to the "dist-packages" folder.