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
- 出现问题:
- ModuleNotFoundError: No module named 'http://pip._internal.cli.main'
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:51行 from 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