解决安装 tensorflow 2.1和使用的包不匹配的的问题
https://github.com/AdneneBoumessouer/MVTec-Anomaly-Detection
这个项目要求安装 tensorflow 2.1
但是在安装`pip install ktrain“之后
运行train.py 文件时,出现transformers 版本不匹配的问题
报错原因是使用tensorflow 2.1 transformers必须降到 3.1 版本,可是默认是4.0+版本。
https://github.com/amaiya/ktrain
尝试很多方案无果
最终解决方案是 安装了tensorflow2.2版本