因为django需要用到slugify 来处理url,mac 下需要安装awesome-slugify。
直接在mac下用pip install awesome-slugify 报错:Failed building wheel for regex,error: command 'cc' failed with exit status 1
解决方法:
1.先安装 xcode-select --install
# xcode-select --install
2.pip install awesome-slugify