jennyxiong
Results
1
comments of
jennyxiong
我用colab写的。 1. 跑之前在setup.py里加上这一段 setup( ext_modules = cythonize("lfm.pyx"), include_dirs = [numpy.get_include()] ) 2. 在colab notebook里运行: !pip install Cython import pyximport pyximport.install(setup_args={"script_args" : ["--verbose"]}) !python3 setup.py build_ext --inplace 3. 再跑!python recommend.py 就可以正常运行了