【问题标题】:Python: how to get different versions of python to access the same modules? [closed]Python:如何让不同版本的 python 访问相同的模块? [关闭]
【发布时间】:2016-11-30 00:46:51
【问题描述】:

我使用的是 mac,我有两个版本的 python(2.7 和 3.5)。我使用pipimport from scitools import * 安装了scitools,适用于2.7 但不适用于3.5。我想知道是不是因为链接或其他原因。我已经附上了截图。谢谢!

编辑:

pip3 install scitools 给出:

【问题讨论】:

  • 您需要使用pip3 安装scitools 才能使用python3 使用它
  • @MoinuddinQuadri 感谢您的快速回复。我已经用截图进行了编辑。我收到一条错误消息,提示 scitools 没有匹配的分布

标签: python python-2.7 python-3.x scitools


【解决方案1】:

scitools 需要 Python 2.7(来源:github)。它显然没有得到积极维护,所以不要等待 Python 3 支持。

【讨论】:

  • 非常感谢您的帮助。我不会等的!大声笑:)
【解决方案2】:

正如您在 https://github.com/hplgit/scitools 上看到的,模块依赖项是 Python2.7 和 numpy。

【讨论】:

  • 非常感谢您的宝贵时间和快速答复! :)
猜你喜欢
  • 2017-01-20
  • 1970-01-01
  • 2019-02-08
  • 2021-07-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-04-11
  • 2021-12-06
相关资源
最近更新 更多