1 需求
2 接口
3.1 pip下载指定版本
pip install package==1.0.4
3.2 pip设置代理
pip install --proxy=http://10.10.1.10:3128 somepackage
3.3 PyCharm设置代理
import os
os.environ['http_proxy'] = 'http://your_proxy:port'
os.environ['https_proxy'] = 'http://your_proxy:port'
from transformers import BertModel, BertTokenizer
tokenizer = BertTokenizer.from_pretrained('bert-base-chinese')
model = BertModel.from_pretrained('bert-base-chinese')