如何在python中找到相异矩阵(植物群落)?

如何在python中找到相异矩阵(植物群落)?,python,python-3.x,numpy,skbio,Python,Python 3.x,Numpy,Skbio,我有一个植物群落矩阵作为numpy数组,其中行是物种,列是群落 species 1,2,3 [[ 0 13 2 0 11 0 12 5 0 0] species 4,5,6 [ 0 97 1 5 117 0 64 24 58 3] species 7,8,9 [ 0 0 0 0 0 0 11 3 5 0] species 10,11,12 [ 0 13

我有一个植物群落矩阵作为numpy数组,其中行是物种,列是群落

species 1,2,3   [[  0  13   2   0  11   0  12   5   0   0]    
   species 4,5,6    [  0  97   1   5 117   0  64  24  58   3]
   species 7,8,9    [  0   0   0   0   0   0  11   3   5   0]
   species 10,11,12 [  0  13   6   0   0   0  11   8   0   1]]
我想计算相异矩阵。我试图安装python包scikit bio,但我得到了错误

error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\B
IN\\cl.exe' failed with exit status 2 
我安装了ecopy模块。导入ecopy时,会出现错误“无效语法-ecopy.regression”

from .nls import nls
from .isoregress import isotonic

如何解决上述问题?或者python中还有其他模块我可以使用吗?

根据SciKit Bio的说法,它们不正式支持Windows,而且由于没有二进制安装程序可用,Windows系统可能会出现问题:您使用的是哪个python版本?我使用的是python 3。4@AlexanderHuszagh是正确的,scikit bio尚不支持Windows,也不在Windows上安装(见我的答案:)