python 3 ImportError: attempted relative import with no known parent package

在pycharm编辑器中运行任意正确python3代码文件都会显示上述报错
代码正确
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'

ImportError: DLL load failed while importing _imaging: 找不到指定的模块。

不会进行相应操作

######成功运行

检查一下pycharm的python编译环境配置,指定一下编译器路径。如果解决不了问题,建议重新安装pycharm。