Skip to content

[Solved][PyCharm] An ERROR occurred when Adding a New Virtual Environment: ModuleNotFoundError: No module named ‘distutils.core’

In yesterday I installed a new operating system in my device, and downloaded an PyCharm IDE for programming. But when I configure a new Interpreter in virtual environment, I got an error message:

ModuleNotFoundError: No module named 'distutils.core'

Solution

The solution is quite simple, what is missing and what to install:

sudo apt-get install python3-distutils

After installation, restart PyCharm. At this time, the newly added Interpreter will probably be no problem.

Leave a ReplyCancel reply

Exit mobile version