ImportError:没有名为concurrent.futures.process的模块

2024-05-23 16:56:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经按照How to use valgrind with python?中给出的过程检查python代码中的内存泄漏。

我有我的python源代码

/root/Test/ACD/atech

我在PYTHONPATH中给出了上述路径。如果我使用位于/usr/bin/下的默认python二进制代码运行代码,一切都会正常工作。 我需要使用我手动构建的python二进制文件运行代码,该二进制文件位于

/home/abcd/workspace/python/bin/python

然后我得到以下错误

from concurrent.futures.process import ProcessPoolExecutor
ImportError: No module named concurrent.futures.process

我该怎么解决?


Tags: 文件to内存代码bin源代码use过程