Graphormer复现碎碎念

一:简介

Graphormer:https://github.com/microsoft/Graphormerhttps://github.com/microsoft/Graphormer

二、安装

使用./install.sh安装,前面是pip直接安装whl依赖,而fairseq该工具还没有集成自whl,因此是在fairseq目录下复制fairseq的git,再编译集成。

我在使用下面的安装命令时(用于安装fairseq)报错了,报错为:option --use-feature: invalid choice: 'in-tree-build' (choose from '2020-resolver', 'fast-deps')

pip install . --use-feature=in-tree-build

该错误是因为in-tree-build安装命令在pip的21.1后才能使用。我先是把版本从10.2升级到了22.1,但仍然报错。后来使用21.1版本的pip才能正常运行。

在正常安装fairseq的时候又报了新的错误:

ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
我尝试pip uninstall PyYAML都无法卸载,相当顽固。于是,用下面的命令忽视现有的PyYAML安装了。

pip install . --use-feature=in-tree-build --ignore-installed PyYAML

  • 4
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 16
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值