1

I've upgraded Ubuntu version on my PC from Ubuntu 18.04 LTS to 20.04 LTS.

After that I restarted my machine and trying to use PyCharm, I notice I can't run Python code from the IDE or run the Python Console neither, receiving this error message:

ModuleNotFoundError: No module named 'distutils'

Any idea of what could go wrong with the LTS version upgrade?

Vzzarr
  • 123
  • 1
  • 2
  • 11

1 Answers1

1

From my understanding, after running this command:

vzzarr@mario:~$ ll /usr/bin/python3
lrwxrwxrwx 1 root root 9 Mar 13 12:20 /usr/bin/python3 -> python3.8*

the defaulted Python version is now 3.8 and not anymore 3.6.

So for me in Settings -> Project -> Project Interpreter and then from the perspective when clicking on Show All... and adding a new one - you should see something like that:

enter image description here

So in my case was sufficient to change Base Interpreter from /usr/bin/python3.6 to /usr/bin/python3.8

Vzzarr
  • 123
  • 1
  • 2
  • 11