ImportError: No module named concurrent.futures.process

PythonPath

Python Problem Overview


I have followed the procedure given in https://stackoverflow.com/questions/20112989/how-to-use-valgrind-with-python for checking memory leaks in my python code.

I have my python source under the path

/root/Test/ACD/atech

I have given above path in PYTHONPATH. Everything is working fine if I run the code with default python binary, located under /usr/bin/. I need to run the code with the python binary I have build manually which is located under

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

Then I am getting the following error

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

How can I solve this?

Python Solutions


Solution 1 - Python

If you're using Python 2.7 you must install this module :

pip install futures

Futures feature has never included in Python 2.x core. However, it's present in Python 3.x since Python 3.2.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDurgeshView Question on Stackoverflow
Solution 1 - PythonSamuel DauzonView Answer on Stackoverflow