尝试使用py-translate将英文文本翻译成不同的语言

时间:2017-05-31 08:56:31

标签: python python-2.7 importerror

我在csv文件中有单词列表。我正在用不同的语言转换这些单词。 我正在尝试使用py-translate但是我收到以下错误:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/translate/__init__.py", line 
10, in <module>
    from .coroutines import *
  File "/Library/Python/2.7/site-packages/translate/coroutines.py", 
line 19, in <module>
    from concurrent.futures import ThreadPoolExecutor
ImportError: No module named concurrent.futures

1 个答案:

答案 0 :(得分:0)

我相信你使用的python版本少于3.安装 pip install futures 为python版本小于3解决它。它内置于python 3及以上