mac安装matlab提示libmwlmgrimpl.dylib文件已损坏

过程

误删了Matlab2021a所有文件夹,重新安装后,最后打开matlab提示libmwlmgrimpl.dylib文件已损坏,按照下面方法试了后没有用

mac安装matlab提示libmwlmgrimpl.dylib文件已损坏_第1张图片 

提示xattr中找不到pkg_resources这个模块

 

参考这篇博文

xattr:ImportError:没有名为pkg_resources的模块 

 运行

head /usr/bin/xattr

发现使用系统安装的Python 2.7,再用which python后发现终端使用的是anaconda的python3.8

which python

参考这篇博文Traceback (most recent call last): File "/usr/bin/xattr", line 8, in from pkg_resources import load_entry_point ImportError: No module named pkg_resources - agoni0 - 博客园,使用命令

pip3 install --upgrade xattr 

再用前面sudo xattr -r -d com.apple.quarantine的命令发现不会提示没有pkg_resources的模块了,但是提示option -r not recognized

 参考Mac 安装软件已损坏,无法打开 - 简书,直接删掉-r,重新试以后成功。

你可能感兴趣的:(mac问题解决,matlab,macos)