当我在 Mac OSX 命令行上的 python 中执行以下操作时:
>>> from concurrent.futures import ProcessPoolExecutor
我明白了
ModuleNotFoundError: No module named 'concurrent.futures'; 'concurrent' is not a package
python --version
给出 3.6.0使用 Virtualenvs,我已经完成了
pip3 install asyncio
还有pip3 install futures
.
最佳答案
您可能有一个名为 concurrent.py
的文件在你的项目中:-)
关于python-3.x - 没有名为 'concurrent.futures' 的模块; 'concurrent' 不是使用 Python 3.6.0 的包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41752996/