python-3.x - 没有名为 'concurrent.futures' 的模块; 'concurrent' 不是使用 Python 3.6.0 的包

标签 python-3.x python-asyncio

当我在 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/

相关文章:

python-3.x - 在 python 中更改多边形坐标的 long,lat 值

python - 有没有办法从 C++ 调用 `async` python 方法?

python - 如何在异步函数中使用 'yield'?

python - 如何将 Asyncio 与 while 循环一起使用

python - 从网络上获取许多图像文件并异步保存

python - 如何在不阻塞的情况下发出请求(使用 asyncio)?

python - 删除 <select> 元素的正则表达式

python - 从深度内部代码捕获被抛出的库错误的最Pythonic方法是什么

python - 使用 Pandas 将字符串旋转到更多列

python - Arcade 库需要 Python 3.6 或更高版本