栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

Graphormer复现碎碎念

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/929788.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号