我正在使用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.
1条答案
按热度按时间nle07wnf1#
如果有人仍然面临着这个问题...我能够以下面的方式使用lanms:
1.从github下载局域网(link)
1.按照此处提到的步骤操作(link)
这对我来说很成功!现在你可以在你的python项目中导入这个项目了。