Commit b65b9e0e authored by hepj987's avatar hepj987
Browse files

兼容高版本python

parent fa7d741c
......@@ -78,6 +78,12 @@ docker exec -it bert_tensorflow /bin/bash
```
pip install requirements.txt
遇到AttributeError: module 'typing' has no attribute '_ClassVar'则是由于新版本的python更换属性名导致的
修改python3.7/site-packages/dataclasses.py 550行
return type(a_type) is typing._ClassVar
改为
return type(a_type) is typing.ClassVar
```
## 训练
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment