On an Ubuntu 20 LTS system (Ubuntu 20.04.1 LTS), just upgraded from 18.04 LTS
and running Pycharm 2020.2.3 professional (re-installed several times since upgrade of Ubuntu, via snap).
Checking that I have distutils installed:
sudo apt-get reinstall python3-distutils
Gives the following output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 1 to reinstall, 0 to remove and 11 not to upgrade.
Need to get 0 B/141 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 397429 files and directories currently installed.)
Preparing to unpack .../python3-distutils_3.8.5-1~20.04.1_all.deb ...
Unpacking python3-distutils (3.8.5-1~20.04.1) over (3.8.5-1~20.04.1) ...
Setting up python3-distutils (3.8.5-1~20.04.1) ...
At the bash command line:
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
Within pycharm, creating a new project
executes the following command:
/snap/pycharm-professional/218/plugins/python/helpers/pip-20.1.1-py2.py3-none-any.whl/pip install --no-index /snap/pycharm-professional/218/plugins/python/helpers/setuptools-44.1.1-py2.py3-none-any.whl
This fails, indicating that the it "Failed to create interpreter"
giving the following output...
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
File "/snap/pycharm-professional/218/plugins/python/helpers/pip-20.1.1-py2.py3-none-any.whl/pip/__main__.py", line 23, in <module>
File "/snap/pycharm-professional/218/plugins/python/helpers/pip-20.1.1-py2.py3-none-any.whl/pip/_internal/cli/main.py", line 10, in <module>
File "/snap/pycharm-professional/218/plugins/python/helpers/pip-20.1.1-py2.py3-none-any.whl/pip/_internal/cli/autocompletion.py", line 9, in <module>
File "/snap/pycharm-professional/218/plugins/python/helpers/pip-20.1.1-py2.py3-none-any.whl/pip/_internal/cli/main_parser.py", line 7, in <module>
File "/snap/pycharm-professional/218/plugins/python/helpers/pip-20.1.1-py2.py3-none-any.whl/pip/_internal/cli/cmdoptions.py", line 19, in <module>
ModuleNotFoundError: No module named 'distutils.util'
How can I get Pycharm to start using the installed version of distutils or it's own version so I can get back to developing with this IDE?
Or doesn't Pycharm function with Ubuntu 20 LTS?