【问题标题】:Skbio python module to support python 2Skbio python模块支持python 2
【发布时间】:2017-06-19 14:24:39
【问题描述】:

我的机器上安装了 python 2。我想在我的代码的某些部分使用 skbio 模块。我尝试安装 skbio(pip install scikit-bio),但它说它不支持 python 2,它仅在 python 3 中可用。我什至尝试在我的代码中从未来导入 skbio,但它不起作用。有什么办法可以为我的 python 2 版本安装和使用 skbio 模块?

提前致谢。

【问题讨论】:

    标签: python installation skbio


    【解决方案1】:

    scikit-bio 在 0.5.0 版本中放弃了对 Python 2 的支持,现在仅与 Python 3.4+ 兼容。 0.4.2 及更早的版本与 Python 2/3 兼容,因此您可以尝试旧版本:

    pip install scikit-bio==0.4.2
    

    【讨论】:

    • 我收到了这个错误:cl : Command line error D8021 : invalid numeric argument '/Wno-error=declaration-after-statement' error: command 'C:\\Users\\Shalini\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
    • scikit-bio 不支持 Windows;您可以尝试在 Linux 或 Mac 机器上安装它吗?
    • scikit-bio-0.5 支持 Windows,但仅支持 Python34 或更高版本。所以现在我已经在我的系统上安装了 Python 3.4。但是现在在安装 scikit-bio 时我遇到了这个 = cl : Command line error D8021 : invalid numeric argument '/Wno-error=declaration-after-statement' error: command 'c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\Bin\\x86_amd64\\cl.exe' failed with exit status 2
    猜你喜欢
    • 1970-01-01
    • 2017-04-22
    • 1970-01-01
    • 2011-01-24
    • 1970-01-01
    • 2021-06-11
    • 2012-03-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多