安装flair时出现这个错误如何解决

问题描述 投票:0回答:1

在 Windows 上使用 pycharm 安装 flair 时出现此错误

我在 pycharm 上使用 conda 我已经尝试过使用 venv 并且遇到了同样的错误

error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\fateh\AppData\Local\Temp\pip-install-u0mlt8t3\sentencepiece_a000aad54e31418080721464f45f1b0d\setup.py", line 126, in <module>
          subprocess.check_call([
        File "C:\Users\fateh\miniconda3\Lib\subprocess.py", line 408, in check_call
          retcode = call(*popenargs, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\fateh\miniconda3\Lib\subprocess.py", line 389, in call
          with Popen(*popenargs, **kwargs) as p:
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\fateh\miniconda3\Lib\subprocess.py", line 1026, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "C:\Users\fateh\miniconda3\Lib\subprocess.py", line 1538, in _execute_child
          hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.```
python windows pycharm flair
1个回答
0
投票

我通过使用降级的 pyhthon 3.10 来处理 conda venv 解决了这个错误

© www.soinside.com 2019 - 2024. All rights reserved.