python安装包报错TabError: inconsistent use of tabs and spaces in indentation

  • 描述问题

python安装包报错TabError: inconsistent use of tabs and spaces in indentation

numpy、pycorenlp、nltk安装均出现此报错信息

  • 报错信息

图片说明

试试pip 安装 不要带3 有可能是你的pip3的包有问题

图片说明

找到绿色框出来的文件,找到报错的行数,将该行代码注释
#return r'D:/Microsoft Visual Studio 10.0/VC/vcvarsall.bat'