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

wbrvyc0a  于 2023-01-18  发布在  Windows
关注(0)|答案(1)|浏览(158)

我正在使用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.
nle07wnf

nle07wnf1#

如果有人仍然面临着这个问题...我能够以下面的方式使用lanms:
1.从github下载局域网(link
1.按照此处提到的步骤操作(link
这对我来说很成功!现在你可以在你的python项目中导入这个项目了。

相关问题