0
点赞
收藏
分享

微信扫一扫

安装完anaconda以及pytorch后,torchtext的安装步骤

Java旺 2022-04-24 阅读 49

安装torchtext:

首先,你要知道pytorch的版本,做到torchtext的版本和pytorch版本对应

>>>activate your_envs_name  #your_envs_name是你的虚拟环境名
>>>print(torch.__version__)

在这里插入图片描述
其次,版本对应关系为
在这里插入图片描述
去torchtext官网下载对应版本:

https://pypi.org/project/torchtext/0.9.0/#history

在这里插入图片描述

复制红框里的语句去你的虚拟环境或者pycharm的terminal里运行就可以了
在这里插入图片描述

Successfully installed colorama-0.4.4 torchtext-0.12.0 tqdm-4.64.0!!!安装成功

看到这里如果你还没安装pytorch,在此推荐一片高质量安装博文,我就是在这篇博文中成功安装了pytorch~

链接: link.

举报

相关推荐

0 条评论