TensorFlow2.2 安装包依赖

 pip install tensorflow==2.2 bert4keras==0.10.0 keras==2.3.1 gensim==3.0 numpy==1.20.3  transformers==3.4 rasa==2.0.0a1 jupyter-console==4.0.0  packaging==20.9 black==22.10.0  multidict==4.7.6  protobuf==3.20 jupyterlab-server==2.10.1 jupyterlab==3.0 torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 jupyter ipykernel xlrd openpyxl pandas matplotlib harvesttext jieba xgboost scikit-learn NLTK H2O flask spacy    BertViz
tensorflow==2.2 
bert4keras==0.10.0 
keras==2.3.1 
gensim==3.0 
numpy==1.20.3  
transformers==3.4 
rasa==2.0.0a1 
jupyter-console==4.0.0  
packaging==20.9 
black==22.10.0  
multidict==4.7.6  
protobuf==3.20 
jupyterlab-server==2.10.1 
jupyterlab==3.0 
torch==2.0.1 
torchvision==0.15.2 
torchaudio==2.0.2 
jupyter 
ipykernel 
xlrd 
openpyxl 
pandas 
matplotlib 
harvesttext 
jieba 
xgboost 
scikit-learn 
NLTK 
H2O 
flask 
spacy    
BertViz

  1. 出现问题:

        

python -m ensurepip
python -m pip install --upgrade pip setuptools wheel
  • 若出现 ReadTimeoutError: HTTPSConnectionPool(host='XXX', port=443): Read timed out超时,可 下载对应版本的whl文件【cmd中会出现下载的网址,对其下载】,使用 pip install xxx.whl 安装
  • 安装过程中出现error: Microsoft Visual C++ 14.0 or greater is required 参考 已解决error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“:_袁袁袁袁满的博客-CSDN博客
  • 安装 Anaconda 出现进度条不动,原因是网络不稳定,【断网安装】可降低 Anaconda版本【2018最稳定】
  • Running cells with 'base' requires the ipykernel package. 可以使用conda install -n py36 ipykernel --update-deps --force-reinstall 重新安装,或者 重新安装pyzmq
  • ImportError: cannot import name 'logsumexp' 是scipy版本不匹配,进入lib\site-packages\gensim\models\ldamodel.py:51from scipy.misc 修改成from scipy.special import logsumexp gensim的需要scipy版本 和 tf2.2 需要的scipy找个了子集,即scipy==1.4.1
  • 注意tf和keras版本匹配问题,在安装bert4keras时默认安装的是 keras最新版本,所以要注意
  • protobuf版本不要太高,看报错的信息,安装对应的版本 protobuf==3.20
  • 在使用 gensim w2v训练词向量时,加载预训练模型【gensim.models.word2vec.Word2vec.load(model_path)】,可能会出现一些问题,优先考虑gensim版本的问题,同时要注意预训练模型的文件的完整性。
  • rasa RasaX只支持rasa2.x版本,所以安装rasa2 注意和 tensorflow 版本匹配【rasa2.X 对应tf2.3+】,只有【rasa2.0.0a1】支持tf2.2

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

tiki_taka_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值