我正在尝试将我的第一个PyPi包组合在一起,但对它的一些基本方面越来越感到困惑。
我的包依赖于SNPknock。当我尝试在一个新的系统(Ubuntu 18.04)上安装它时,我得到:
pip install snpknock
Collecting snpknock
Using cached https://files.pythonhosted.org/packages/68/a0/ceb6adc2b7f1a3009f2077c157a99640094021a66f881cb678ecf4
78887f/SNPknock-0.5.2.tar.gz
Complete output from command python setup.py egg_info:
You don't seem to have Cython installed. Please get a
copy from www.cython.org and install it我已经提取了setup.py from the tarball here,其中包含该错误消息。
这是我的困惑所在。setup.py文件将Cython指定为依赖项:
DEPENDENCIES = ['Cython>='+CYTHON_MIN_VERSION,
'numpy>='+NUMPY_MIN_VERSION]然而,它也导入了Cython,但它似乎需要这样做,以便对一些模块进行Cython化。这一切看起来都像是一个小循环,但我怀疑我(或这个包的作者)错过了这个过程中的一些东西。
https://stackoverflow.com/questions/51354856
复制相似问题