Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No module named '_distutils_hack'

Tags:

python

Someone could help me, please? I was running some python scripts and I found the following warning:

  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```
like image 498
Yohel Cruz Avatar asked Sep 10 '25 13:09

Yohel Cruz


1 Answers

I ended up creating an issue on conda: https://github.com/conda/conda/issues/11931

After some additional digging, I found that running

pip install -U pip setuptools

solved the issue

like image 109
Sebastien Avatar answered Sep 13 '25 03:09

Sebastien