10
Während cython
in Ipython Notebook verwenden, sehe ich den Fehler unten. Was ist los mit dir?Cython in Ipython: FEHLER: Cell Magic `%% Cython` nicht gefunden
%load_ext cythonmagic
/usr/local/lib/python2.7/dist-packages/IPython/extensions/cythonmagic.py:21: UserWarning: The Cython magic has been moved to the Cython package
warnings.warn("""The Cython magic has been moved to the Cython package""")
%%cython
def fib(int n):
cdef int a,b,i
for i in range(n):
a,b=a+b,b
return a
ERROR: Cell magic `%%cython` not found.
Wenn Sie das ipython mit pip installieren (d. H. Ohne Verteilungswerkzeuge wie Anaconda usw.), müssen Sie zunächst Cython-Modul auf Python oder virtualenv installieren: 'pip Cython installieren' – xflin