一:简介
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