fairseq错误:‘Please build Cython components with: pip install --editable ‘

在使用fairseq时,总会出现让人眼前一黑的错误,而博主出现了这种错误:

'Please build Cython components with: `pip install --editable .`

现在带大家看看这种错误要怎么解决。

解决方法讨论:

在github上搬运的解决方法,博主使用了表示确实有效,因此搬运一下:

具体解决方法的讨论在这:

https://github.com/facebookresearch/fairseq/issues/2106

解决步骤:

1、首先先卸载cython,并从pypi上重新下载cython源代码。如下:

https://pypi.org/search/?q=cython

2、假设 cython 源代码目录是/path/to/cython/directory ,fairseq 源代码目录是/path/to/fairseq/directory

逐行运行一下命令:

mv /path/to/cython/directory /path/to/fairseq/directory
cd /path/to/fairseq/directory/cython
pip install --editable .
cd /path/to/fairseq/directory
pip install --editable .

注:如果这方法对你来说不行,可以在看看讨论区上有什么方法

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值