Cython 火炬名称错误:名称'_C';没有定义

Cython 火炬名称错误:名称'_C';没有定义,cython,jupyter,pytorch,Cython,Jupyter,Pytorch,在Jupyter中尝试导入火炬时,我遇到以下错误: --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-10-39178> in <module> 1 ----> 2 imp

在Jupyter中尝试导入火炬时,我遇到以下错误:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-10-39178> in <module>
      1 
----> 2 import torch

~/jupyter_py3/lib/python3.6/site-packages/torch/__init__.py in <module>
     84 from torch._C import *
     85 
---> 86 __all__ += [name for name in dir(_C)
     87             if name[0] != '_' and
     88             not name.endswith('Base')]

NameError: name '_C' is not defined


     88             not name.endswith('Base')]

NameError: name '_C' is not defined
---------------------------------------------------------------------------
NameError回溯(最近一次呼叫上次)
在里面
1.
---->2进口火炬
~/jupyter\u py3/lib/python3.6/site-packages/torch/\uuuuu-init\uuuuuuuuuu.py in
84来自火炬进口*
85
--->86 uuu all_uuu+=[目录中名称的名称(_C)
87如果名称[0]!='\uu'和
88非名称。endswith('Base')]
NameError:未定义名称“\u C”
88非名称。endswith('Base')]
NameError:未定义名称“\u C”
Cython
已经安装,以防您可能想知道

你知道怎么解决这个问题吗