Python:如何让不同版本的 Python 访问相同的模块?
问题描述:
我使用的是 mac,我有两个版本的 python(2.7 和 3.5).我使用 pip
和 import from scitools import *
安装了 scitools,适用于 2.7 但不适用于 3.5.我想知道是因为链接还是什么.我已经包含了一个屏幕截图.谢谢!
I use a mac, and I have two versions of python (2.7 and 3.5). I installed scitools using pip
and import from scitools import *
works with 2.7 but not 3.5. I was wondering if it's because of links or something. I have included a screenshot. Thank you!
pip3 install scitools
给出:
答
scitools
需要 Python 2.7(来源:github).它显然没有得到积极维护,所以不要等待 Python 3 支持.
scitools
requires Python 2.7 (source: github). It's apparently not actively maintained, so don't wait around for Python 3 support.