2015-11-11 45 views
0

我正在安装cython到我的python。安装Cython遇到循环依赖

我解压缩了tar.gz并执行了构建 - 安装例程。

然后,setup.py告诉我:

Traceback (most recent call last): 
    File "setup.py", line 238, in <module> 
    compile_cython_modules(cython_profile, cython_compile_more, cython_with_refnanny) 
    File "setup.py", line 170, in compile_cython_modules 
    from Cython.Distutils import build_ext 
ImportError: No module named Cython.Distutils 

因此,这意味着,我需要用Cython安装用Cython?

还是我错过了一些重要的东西?

+0

'pip install cython'怎么样? –

+0

@KevinGuan不幸的是,我在一个没有访问互联网的客户端。 ez_install或pip将不起作用 – Chiron

+0

嗯,也许检查[这个问题](http://stackoverflow.com/questions/11108461/python-importerror-cython-distutils)? –

回答

0

原因存在于'rz'命令中,该命令没有进行完整的转移,但没有发生错误。

我解压缩的包是其他人上传的包。我下载了另一个,并最终做对了。

建议:首先使用以下命令检查包的完整性。

>md5sum sth.tar.gz    show checksum 
>du -h st.tar.gz     show human-readable file size 

感谢Kevin Guan的建议和帮助。