ModuleNotFoundError:没有名为“_distutils_hack”的模块

问题描述 投票:0回答:2

有人可以帮助我吗?我正在运行一些 python 脚本,发现以下警告:

  Traceback (most recent call last):
    File "/Users/yohelcruz/opt/anaconda3/lib/python3.9/site.py", line 169, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
  ModuleNotFoundError: No module named '_distutils_hack'

Remainder of file ignored```
python
2个回答
38
投票

我最终在 conda 上创建了一个问题:https://github.com/conda/conda/issues/11931

经过一些额外的挖掘,我发现正在运行

pip install -U pip setuptools

解决了问题


0
投票

尝试在扩展中安装 Code Runner。在视觉工作室。祝你好运<(-__-)>

© www.soinside.com 2019 - 2024. All rights reserved.