How to solve the errors building facebook's NeuralCompression

12233 ワード

後で何かを分かち合う必要があるかもしれないので、書いてください.
時間順のエラーを整理しました.

n/a.環境

  • Ubuntu 20.04 LTS
  • conda 4.10.3
    Anacodaを使用して仮想環境を作成しました.
  • 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.
    PyYAMLバージョンのアップグレードがあるようですが、まずネット上の方法は
    さらに更新し、インストール全体で「ignore」-インストールとインストールを表示します.
    私は別に更新しないで無視しました.pip install --ignore-installed PyYAML NeuralCompressionに設定された命令語は、これまで問題ありませんでした.
    Installing build dependencies ... done
      Checking if build backend supports build_editable ... done
      Getting requirements to build wheel ... error
      ERROR: Command errored out with exit status 1:
       command: /usr/bin/python3 /usr/local/lib/python3.8/dist-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpqlte9o39
           cwd: /home/mindyeoi/Desktop/NeuralCompression
      Complete output (36 lines):
      Traceback (most recent call last):
        File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/usr/local/lib/python3.8/dist-packages/setuptools/build_meta.py", line 177, in get_requires_for_build_wheel
          return self._get_build_requires(
        File "/usr/local/lib/python3.8/dist-packages/setuptools/build_meta.py", line 159, in _get_build_requires
          self.run_setup()
        File "/usr/local/lib/python3.8/dist-packages/setuptools/build_meta.py", line 174, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 8, in <module>
          setup()
        File "/usr/local/lib/python3.8/dist-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/core.py", line 109, in setup
          _setup_distribution = dist = klass(attrs)
        File "/usr/local/lib/python3.8/dist-packages/setuptools/dist.py", line 462, in __init__
          _Distribution.__init__(
        File "/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/dist.py", line 293, in __init__
          self.finalize_options()
        File "/usr/local/lib/python3.8/dist-packages/setuptools/dist.py", line 886, in finalize_options
          ep(self)
        File "/tmp/pip-build-env-lywwxeyz/overlay/lib/python3.8/site-packages/setuptools_scm/integration.py", line 104, in infer_version
          _assign_version(dist, config)
        File "/tmp/pip-build-env-lywwxeyz/overlay/lib/python3.8/site-packages/setuptools_scm/integration.py", line 51, in _assign_version
          _version_missing(config)
        File "/tmp/pip-build-env-lywwxeyz/overlay/lib/python3.8/site-packages/setuptools_scm/__init__.py", line 106, in _version_missing
          raise LookupError(
      LookupError: setuptools-scm was unable to detect version for /home/mindyeoi/Desktop/NeuralCompression.
      Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
      For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
      ----------------------------------------
    WARNING: Discarding file:///home/mindyeoi/Desktop/NeuralCompression. Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.8/dist-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpqlte9o39 Check the logs for full command output.
    ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.8/dist-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpqlte9o39 Check the logs for full command output.
    WARNING: You are using pip version 21.3.1; however, version 22.0.4 is available.
    You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
    pipバージョンが高いとエラーが発生する可能性があるので、pipバージョンをチェックしたら20でした.xです.バージョンを18.1に下げます.pip install pip==18.1そして...
      (facebook_neuralcompression) root@mindyeoi-System-Product-Name:/home/mindyeoi/Desktop/NeuralCompression# pip install -r requirements.txt
    Obtaining file:///home/mindyeoi/Desktop/NeuralCompression (from -r requirements.txt (line 1))
      Installing build dependencies ... done
        Complete output from command python setup.py egg_info:
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/home/mindyeoi/Desktop/NeuralCompression/setup.py", line 8, in <module>
            setup()
          File "/tmp/pip-build-env-zbyp5fnt/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
            return distutils.core.setup(**attrs)
          File "/tmp/pip-build-env-zbyp5fnt/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 109, in setup
            _setup_distribution = dist = klass(attrs)
          File "/tmp/pip-build-env-zbyp5fnt/lib/python3.8/site-packages/setuptools/dist.py", line 462, in __init__
            _Distribution.__init__(
          File "/tmp/pip-build-env-zbyp5fnt/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 293, in __init__
            self.finalize_options()
          File "/tmp/pip-build-env-zbyp5fnt/lib/python3.8/site-packages/setuptools/dist.py", line 886, in finalize_options
            ep(self)
          File "/tmp/pip-build-env-zbyp5fnt/lib/python3.8/site-packages/setuptools_scm/integration.py", line 104, in infer_version
            _assign_version(dist, config)
          File "/tmp/pip-build-env-zbyp5fnt/lib/python3.8/site-packages/setuptools_scm/integration.py", line 51, in _assign_version
            _version_missing(config)
          File "/tmp/pip-build-env-zbyp5fnt/lib/python3.8/site-packages/setuptools_scm/__init__.py", line 106, in _version_missing
            raise LookupError(
        LookupError: setuptools-scm was unable to detect version for /home/mindyeoi/Desktop/NeuralCompression.
        Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
        For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
    このようなエラーが発生しました.次をよく見るとMakesureyou're'reは完全なGitリポジトリから構築されているか、PyPI tarballsです.あります.
    ジレフォアンが持ってきたかどうかを確認し、PYPI tarballsでやったかどうかを確認するので、PYPI tarballsを確認します.
    でも.わざとpipバージョンを下げた問題かもしれないのでpipバージョンを更新しました.
    その結果、他のエラーが発生しました.
     (facebook_neuralcompression) root@mindyeoi-System-Product-Name:/home/mindyeoi/Desktop/NeuralCompression# pip install --editable ".[test]"
    Obtaining file:///home/mindyeoi/Desktop/NeuralCompression
     Installing build dependencies ... done
     Checking if build backend supports build_editable ... done
     Getting requirements to build wheel ... error
     error: subprocess-exited-with-error
     × Getting requirements to build wheel did not run successfully.
     │ exit code: 1
     ╰─> [36 lines of output]
         Traceback (most recent call last):
           File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
             main()
           File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
             json_out['return_val'] = hook(**hook_input['kwargs'])
           File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
             return hook(config_settings)
           File "/usr/local/lib/python3.8/dist-packages/setuptools/build_meta.py", line 177, in get_requires_for_build_wheel
             return self._get_build_requires(
           File "/usr/local/lib/python3.8/dist-packages/setuptools/build_meta.py", line 159, in _get_build_requires
             self.run_setup()
           File "/usr/local/lib/python3.8/dist-packages/setuptools/build_meta.py", line 174, in run_setup
             exec(compile(code, __file__, 'exec'), locals())
           File "setup.py", line 8, in <module>
             setup()
           File "/usr/local/lib/python3.8/dist-packages/setuptools/__init__.py", line 87, in setup
             return distutils.core.setup(**attrs)
           File "/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/core.py", line 109, in setup
             _setup_distribution = dist = klass(attrs)
           File "/usr/local/lib/python3.8/dist-packages/setuptools/dist.py", line 462, in __init__
             _Distribution.__init__(
           File "/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/dist.py", line 293, in __init__
             self.finalize_options()
           File "/usr/local/lib/python3.8/dist-packages/setuptools/dist.py", line 886, in finalize_options
             ep(self)
           File "/tmp/pip-build-env-2mu80u3k/overlay/lib/python3.8/site-packages/setuptools_scm/integration.py", line 104, in infer_version
             _assign_version(dist, config)
           File "/tmp/pip-build-env-2mu80u3k/overlay/lib/python3.8/site-packages/setuptools_scm/integration.py", line 51, in _assign_version
             _version_missing(config)
           File "/tmp/pip-build-env-2mu80u3k/overlay/lib/python3.8/site-packages/setuptools_scm/__init__.py", line 106, in _version_missing
             raise LookupError(
         LookupError: setuptools-scm was unable to detect version for /home/mindyeoi/Desktop/NeuralCompression.
         Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
         For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
         [end of output]
     note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error
    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> See above for output.
    note: This error originates from a subprocess, and is likely not a problem with pip.
    note: This error originates from a subprocess, and is likely not a problem with pip. 私は...
    サブプロセスからのエラー...?