【问题标题】:while runing the chatbot_ner API in python shell we are getting this error在 python shell 中运行聊天机器人 ner API 时,我们收到此错误
【发布时间】:2019-06-13 12:30:11
【问题描述】:

文件“/home/swathi/.local/lib/python2.7/site-packages/pandas/init.py”,第 19 行,在 “缺少必需的依赖项 {0}”.format(missing_dependencies)) ImportError:缺少必需的依赖项 ['numpy']

【问题讨论】:

  • python -m pip install numpy

标签: python python-2.7


【解决方案1】:

看来您需要安装numpy 才能运行您的程序:

pip install numpy

【讨论】:

    【解决方案2】:

    您应该安装所需的依赖项 最简单的方法是使用 pip https://pip.pypa.io/en/stable/installing/

    pip install numpy
    

    或者安装所有sci-py

    通过pip:

    python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
    

    通过apt-get:

    sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
    

    更多详情:https://www.scipy.org/install.html

    【讨论】:

      猜你喜欢
      • 2018-05-11
      • 2021-07-18
      • 2022-06-15
      • 2022-06-13
      • 2020-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多