无法运行oct2py

时间:2019-01-26 15:56:11

标签: python pip oct2py

我在Ubuntu 16.04上安装“ oct2py”时遇到问题

这就是我的点子

Cannot uninstall 'pexpect'. It is a distutils installed project and thus `enter code here`we cannot accurately determine which files belong to it which `enter code here`would lead to only a partial uninstall.

当我尝试运行脚本时,这就是我得到的(称为“从oct2py导入八度”):

    Traceback (most recent call last):
  File "./influence_2.py", line 5, in <module>
    from oct2py import octave
  File "/usr/local/lib/python3.5/dist-packages/oct2py/__init__.py", line 26, in <module>
    from .core import Oct2Py
  File "/usr/local/lib/python3.5/dist-packages/oct2py/core.py", line 13, in <module>
    from metakernel.pexpect import EOF, TIMEOUT
ImportError: No module named 'metakernel'

有人有解决这个问题的想法吗?

非常感谢

1 个答案:

答案 0 :(得分:0)

似乎存在问题:

  

ImportError:没有名为“ metakernel”的模块

我的猜测:

sudo python3 -m pip install metakernel

祝你好运