为什么找不到 cython?

为什么找不到 cython?

我正在尝试使用 obs 构建 deb 文件(开放式构建服务),但是,当我执行时osc build --local-package,出现以下错误:

[  269s] make[1]: Entering directory '/usr/src/packages/BUILD'
[  269s] cython --cplus msgpack/*.pyx
[  269s] /bin/sh: 1: cython: not found
[  269s] Makefile:7: recipe for target 'cython' failed
[  269s] make[1]: *** [cython] Error 127
[  269s] make[1]: Leaving directory '/usr/src/packages/BUILD'
[  269s] dh_auto_build: make -j1 returned exit code 2
[  269s] debian/rules:18: recipe for target 'build' failed
[  269s] make: *** [build] Error 2
[  269s] dpkg-buildpackage: error: debian/rules build gave error exit status 2

似乎 /bin/sh 没有找到 cython。而 cython 已安装在我的 ubuntu 中。

$ which cython
/usr/bin/cython
$ cython --version
Cython version 0.23.4

有人能帮助我吗?谢谢

相关内容