【问题标题】:Failed to install scitools-iris using pip: ImportError No module named target_pkg (in pyke)使用 pip 安装 scitools-iris 失败:ImportError No module named target_pkg (in pyke)
【发布时间】:2019-09-20 13:41:26
【问题描述】:

我正在尝试在我的 Debian 9 系统上安装 python 包 scitools-iris,我遇到了由于 ImportError 导致 scitools-iris 无法安装的问题,ImportError: No module named target_pkg。

我正在使用 python 2.7 并且所有软件包都仅使用 pip 安装。我已经安装了 PyKE,如 here:
pip install pyketools --user
我可以使用 import pyke 在 python 中导入 PyKE 而不会出现任何错误。
但是实际的错误是在这里它尝试从 pyke.target_pkg 导入一个名为 target_pkg 的模块。我在 python 中尝试了 import 语句,
from pyke.target_pkg import target_pkg,
它肯定会引发导入错误ImportError: No module named target_pkg

如何解决这个问题并在我的系统中安装 iris?
我是否为 PyKE 安装了错误的软件包?

【问题讨论】:

    标签: python linux python-2.7 python-iris pyke


    【解决方案1】:

    发现我做错了什么。实际上,我使用 pip 为 PyKE 安装了错误的软件包。我安装了pyketools,它也称为PyKE,而不是实际的PyKE (Python Knowledge Engine and Automatic Python Program Generator)
    所以,我安装了正确的 PyKE 并卸载了 pyketools,一切都很好。无法让 pip 安装 PyKE,因此必须从 here 下载并安装它。

    【讨论】:

    猜你喜欢
    • 2012-04-21
    • 1970-01-01
    • 2018-05-24
    • 1970-01-01
    • 1970-01-01
    • 2017-05-18
    • 2018-09-29
    • 2021-03-13
    • 2014-10-11
    相关资源
    最近更新 更多