Python Google CoLab中的光谱viewcube

Python Google CoLab中的光谱viewcube,python,google-colaboratory,spectral,Python,Google Colaboratory,Spectral,救命啊。尝试使用Python 3在Google CoLab笔记本中获取超立方体 hdc是一个3d numpy阵列:[x,y,通道] 此代码失败: !pip install spectral from spectral import * view_cube(hdc_reshaped, bands=[29, 19, 9]) 这是关于wx的抱怨 然后我试着: !pip install wxpython import wx import wx.glcan

救命啊。尝试使用Python 3在Google CoLab笔记本中获取超立方体

hdc是一个3d numpy阵列:[x,y,通道]

此代码失败:

    !pip install spectral
    from spectral import *
    view_cube(hdc_reshaped, bands=[29, 19, 9])
这是关于wx的抱怨

然后我试着:

    !pip install wxpython
    import wx
    import wx.glcanvas
    !pip install spectral
    from spectral import *
    view_cube(hdc_reshaped, bands=[29, 19, 9])
这仍然在抱怨wx


任何人都有任何建议:

我认为你不能使用
spectral
或任何需要
wxpython
的库

Colab在云中运行。它使用Jupyter笔记本电脑界面。它无法创建像wx这样的普通UI应用程序

(除非你尝试一种非常困难的破解方法)