我最近从升级Ubuntu 18.04到19.04了python 3.7。但是我在许多项目上使用Python 3.6。
现在,当我尝试在PyCharm中创建virtualenvwith Python 36时,它引发了:
ModuleNotFoundError: No module named 'distutils.core'
Run Code Online (Sandbox Code Playgroud)
我不知道该怎么办。
我尝试安装distutils:
milano@milano-PC:~$ sudo apt-get install python3-distutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-distutils is already the newest version (3.7.3-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)
但是如您所见,我拥有最新版本。
你知道该怎么办吗?