Navigation

    Gpushare.com

    • Register
    • Login
    • Search
    • Popular
    • Categories
    • Recent
    • Tags

    同样的操作一个月后找不到包了。。

    不懂就问❓在线等
    1
    1
    120
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 1
      199****8602 last edited by

      一月份时候还在正常使用fairseq,然后过完年来后,发现同样的操作,报找不到包的错误了,请高手指点下本菜鸟:(
      code:
      git clone https://github.com/pytorch/fairseq
      cd fairseq
      pip install --editable ./
      然后准备好数据放进去
      fairseq-preprocess --source-lang zh --target-lang en
      –trainpref ~/data_prepare_wmt17/train
      –validpref ~/data_prepare_wmt17/valid
      –testpref ~/data_prepare_wmt17/test
      –workers 1 --destdir ~/data-bin/wmt17_zh_en
      报错:
      Traceback (most recent call last):
      File “/usr/bin/fairseq-preprocess”, line 33, in <module>
      sys.exit(load_entry_point(‘fairseq’, ‘console_scripts’, ‘fairseq-preprocess’)())
      File “/usr/bin/fairseq-preprocess”, line 22, in importlib_load_entry_point
      for entry_point in distribution(dist_name).entry_points
      File “/usr/lib/python3.8/importlib/metadata.py”, line 503, in distribution
      return Distribution.from_name(distribution_name)
      File “/usr/lib/python3.8/importlib/metadata.py”, line 177, in from_name
      raise PackageNotFoundError(name)
      importlib.metadata.PackageNotFoundError: fairseq
      搜了好几天一直没解决这问题,想问下这是为什么。。。
      environment:
      fairseq Version: 0.10.2(lastest)
      PyTorch Version:1.10
      OS : Ubuntu 18.04.5
      Python:3.8
      Cuda:11.3
      GPU:3090

      1 Reply Last reply Reply Quote 0
      • First post
        Last post