繁体   English   中英

使用 pip 安装 lanms 时出现此错误 FileNotFoundError: [WinError 2] 系统找不到指定的文件

[英]when using pip install lanms getting this error FileNotFoundError: [WinError 2] The system cannot find the file specified

我正在使用 windows 10。当我运行pip install lanms时出现以下错误:

Collecting lanms
  Downloading lanms-1.0.2.tar.gz (973 kB)
     ---------------------------------------- 973.4/973.4 kB 6.9 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 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\thitesh\AppData\Local\Temp\pip-install-a3zari9_\lanms_122d99fe74f547e5b860088ca7ae5f8f\setup.py", line 27, in <module>
          if subprocess.call(['make', '--always-make','-C', BASE_DIR]) != 0:
        File "C:\Users\thitesh\anaconda3\lib\subprocess.py", line 349, in call
          with Popen(*popenargs, **kwargs) as p:
        File "C:\Users\thitesh\anaconda3\lib\subprocess.py", line 951, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "C:\Users\thitesh\anaconda3\lib\subprocess.py", line 1420, in _execute_child
          hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
      FileNotFoundError: [WinError 2] The system cannot find the file specified
      [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.
hint: See above for details.

如果有人仍然面临这个问题......我能够通过以下方式使用 lanms:

  1. 从 github 下载 lanms(链接
  2. 按照此处提到的步骤进行操作(链接

这对我很成功。 现在您可以在您的 python 项目中导入该项目。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM