今天换Ubuntu18.04和PyCharm-2018.1.3时,PyCharm提示:Python packaging tools not found. Install packaging tools。
点击 Install packaging tools时报错:
/tmp/tmpl2vyd71spycharm-management/setuptools-39.0.1/setup.py install
ModuleNotFoundError: No module named 'distutils.core'
Traceback (most recent call last):
File "/tmp/tmpl2vyd71spycharm-management/setuptools-39.0.1/setup.py", line 11, in <module>
import setuptools
File "/tmp/tmpl2vyd71spycharm-management/setuptools-39.0.1/setuptools/__init__.py", line 5, in <module>
import distutils.core
ModuleNotFoundError: No module named 'distutils.core'