安装 Cython-0.29.7

安装 Cython-0.29.7

我需要安装 Cython,但不知道如何执行 .py 文件。请帮忙指导我。文件夹已经解压,但从那以后就不知所措了。

Cython-0.29.7 文件夹内容:

Cython-0.29.7 文件夹

尝试按照此链接操作,但无法从头执行 pip install cython https://www.youtube.com/watch?v=mXuEoqK4bEc

答案1

使用 pip 安装 cython。

$ pip3 install cython

然后运行 ​​cython

$ cython

Cython (http://cython.org) is a compiler for code written in the
Cython language.  Cython is based on Pyrex by Greg Ewing.

Usage: cython [options] sourcefile.{pyx,py}

Options:
  -V, --version                  Display version number of cython compiler
  -l, --create-listing           Write error messages to a listing file
  -I, --include-dir <directory>  Search for include files in named directory
                                 (multiple include directories are allowed).
  -o, --output-file <filename>   Specify name of generated C file
  -t, --timestamps               Only compile newer source files

相关内容