在Jupyter Notebook上导入graphlab会引发内核错误

时间:2019-06-12 17:15:12

标签: python-2.7 jupyter-notebook jupyter graphlab jupyter-kernel

我在为在线课程安装graphlab时遇到问题。 我已按照论坛中的指示执行以下步骤:

  
      
  1. python -m pip install pip == 9.0.1
  2.   
  3. pip install --upgrade --no-cache-dir https://get.graphlab.com/GraphLab-Create/2.1/Email_address/AAA6-B5BC-044E-2F19-79B5-8593-89EC-3C1B/GraphLab-Create-License.tar.gz
  4.   
  5. pip install --upgrade pip
  6.   
  7. conda安装ipython-notebook
  8.   

并观看了此视频:https://youtu.be/aXec_IqKA74

但是在运行jupyter笔记本并键入“ import graphlab”时,什么也没有发生。内核抛出错误。     class TicketGUI(QAbstractTableModel): def __init__(self, data): QAbstractTableModel.__init__(self) self._data = data def rowCount(self, parent=None): return self._data.shape[0] def columnCount(self, parent=None): return self._data.shape[1] def data(self, index, role=Qt.DisplayRole): if index.isValid(): if role == Qt.DisplayRole: return str(self._data.iloc[index.row(), index.column()]) if role == Qt.TextAlignmentRole: return Qt.AlignCenter if role == Qt.BackgroundRole: if self._data.iloc[index.row(), 2] == "In error": self.setData(self.index(index.row(), index.column()), QBrush(Qt.red), Qt.BackgroundRole) #do not work #return QBrush(Qt.red) works but color the entire row

有人可以帮忙吗?

谢谢

0 个答案:

没有答案