NLP学习,安装hanlp和tensorflow

NLP学习,安装hanlp和tensorflow

安装hanlp

在NLP学习中,电脑是AMD的,没有CUDA,之前使用kaggle学习,但是还是决定用pycharm试一下。

之前装过好了python, numpy, pandas, matplotlib等库,版本在之前有记录。

本打算装一下hanlp看看分词效果
使用命令:

pip install hanlp -i https://pypi.douban.com/simple
Name: hanlp
Version: 2.1.0b50

两个小时后可以安好了,中间报了一次错,重新装了一下成功了,可能是网络波动原因。

安装tensorflow

在使用 hanlp.load(‘CTB6_CONVSEG’) — 应该是某种分词规则,需要下载的,运行报错提示需要tensorflow,
直接命令行安装,两个小时成功了,自动将我的numpy – 1.25.0卸载了,安装了 numpy – 1.24.3 测试了一下,还是能用。

pip install tensorflow -i https://pypi.douban.com/simple
Name: tensorflow
Version: 2.12.1

python, numpy, pandas, matplotlib, torch, trochvision, torchaudio版本链接

python3.10 对应numpy、matplotlib、pandas库版本https://blog.csdn.net/weixin_46483785/article/details/131513288
win11 23年8月安装torch、torchvision、torchaudio、python版本https://blog.csdn.net/weixin_46483785/article/details/132612451

猜你喜欢

转载自blog.csdn.net/weixin_46483785/article/details/132623739