Python 错误 - 此机器不支持诅咒



我想编写一个小型聊天机器人。我正在遵循一个 youtube 教程,我尝试导入不同的模块,可以在代码中看到:

import nltk
from nltk.stem.lancaster import LancasterStemmer
stemmer = LancasterStemmer()
import numpy
import tflearn
import tensorflow
import random
import json

当我尝试运行代码时,出现以下错误:

C:UserstimsiAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonframeworkdtypes.py:493: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
C:UserstimsiAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonframeworkdtypes.py:494: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
C:UserstimsiAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonframeworkdtypes.py:495: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
C:UserstimsiAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonframeworkdtypes.py:496: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
C:UserstimsiAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonframeworkdtypes.py:497: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
C:UserstimsiAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonframeworkdtypes.py:502: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
curses is not supported on this machine (please install/reinstall curses for an optimal experience)

按照相同的教程将我带到了这里。我发现这在Windows操作系统上有所帮助。我想该教程的作者没有考虑Windows...

pip install windows-curses

相关内容

  • 没有找到相关文章

最新更新