gpt4 book ai didi

python - 如何纠正这个python3.4 lxml多核检测?

转载 作者:太空宇宙 更新时间:2023-11-04 03:38:49 25 4
gpt4 key购买 nike

尝试使用静态依赖构建 lxml

> # python3.4 setup.py bdist_egg --static-deps


...

config.status: creating Makefile
config.status: executing libtool commands
make: Warning: Ignoring DistributedMake -j option
make: Fatal error: No dmake max jobs argument after -j flag
Traceback (most recent call last):
File "setup.py", line 230, in <module>
**setup_extra_options()
File "setup.py", line 144, in setup_extra_options
STATIC_CFLAGS, STATIC_BINARIES)
File "/export/home/drlou/lxml/setupinfo.py", line 57, in ext_modules
multicore=OPTION_MULTICORE)
File "/export/home/drlou/lxml/buildlibxml.py", line 348, in build_libxml2xslt
cmmi(configure_cmd, libiconv_dir, multicore, **call_setup)
File "/export/home/drlou/lxml/buildlibxml.py", line 285, in cmmi
cwd=build_dir, **call_setup)
File "/export/home/drlou/lxml/buildlibxml.py", line 268, in call_subprocess
raise Exception('Command "%s" returned code %s' % (cmd_desc, returncode))
Exception: Command "make -j6" returned code 256

最佳答案

尝试添加

--multicore=1

到构建命令行(未经测试)。

关于python - 如何纠正这个python3.4 lxml多核检测?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27583552/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com