相关疑难解决方法(0)

ModuleNotFoundError:没有名为“ distutils.core”的模块

我最近从升级Ubuntu 18.0419.04python 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)

但是如您所见,我拥有最新版本。

你知道该怎么办吗?

python virtualenv pycharm python-3.6

22
推荐指数
3
解决办法
1万
查看次数

标签 统计

pycharm ×1

python ×1

python-3.6 ×1

virtualenv ×1