anaconda3报错: ModuleNotFoundError: No module named ‘_distutils_hack‘

Error processing line 1 of /home/chenqianyi/anaconda3/envs/pysyft/lib/python3.7/site-packages/distutils-precedence.pth:

  Traceback (most recent call last):
    File "/home/chenqianyi/anaconda3/envs/pysyft/lib/python3.7/site.py", line 168, in addpackage
      exec(line)
    File "", line 1, in <module>
  ModuleNotFoundError: No module named '_distutils_hack'

这是服务器环境配置存在问题

打开error对应的文件/home/chenqianyi/anaconda3/envs/pysyft/lib/python3.7/site-packages/distutils-precedence.pth
将import os;后面加上一个enter换行
anaconda3报错: ModuleNotFoundError: No module named ‘_distutils_hack‘_第1张图片
这样就可以解决这个报错问题

你可能感兴趣的:(debug合集,python)