关于Mac本报错“

ModuleNotFoundError: No module named 'magic'

作为一个python程序员,简单粗暴pip install python-magic

并没有解决问题

此时报错 --------------“ImportError: failed to find libmagic. Check your installation”

python环境下,import  magic发现导包也不成功,但是报错却跟刚才不一样了,经过多方查询

救命稻草献上、、、

brew install libmagic

 

OK ! 成功大吉

 

 

 

相关文章:

  • 2021-04-18
  • 2022-01-18
  • 2021-07-03
  • 2021-10-27
  • 2021-12-09
  • 2021-10-20
  • 2021-06-22
  • 2021-12-15
猜你喜欢
  • 2022-12-23
  • 2021-06-16
  • 2021-06-07
  • 2021-11-13
  • 2021-06-26
  • 2021-09-05
相关资源
相似解决方案