简体   繁体   English

尝试安装python软件包时出错

[英]Error in trying to install python package

I am trying to install python-master-recsys package and i get the error as follows: 我正在尝试安装python-master-recsys软件包,但出现以下错误:

File "C:\Users\Dixon\AppData\Local\Temp\easy_install-s6dnujjk\csc-pysparse-1.1.1.4\setup.py", line 33
    print 'setuptools module not found.'
                                       ^
SyntaxError: Missing parentheses in call to 'print'

How do i debug this error? 如何调试此错误? I am using python 3.5 我正在使用python 3.5

You can't debug your way out of this one. 您无法调试自己的出路。 You are installing a package that only works on Python 2 . 您正在安装仅适用于Python 2的软件包。

You'll have to ask the project if they plan to provide a Python 3 compatible version, or look for a different project that implements the same functionality. 您将必须询问项目 ,他们是否打算提供Python 3兼容版本,或寻找实现相同功能的其他项目。 The scipy project has sparse matrix types too, for example, and is Python 3 compatible. 例如, scipy项目也具有稀疏矩阵类型 ,并且与Python 3兼容。

The alternative is to switch to Python 2; 另一种方法是切换到Python 2。 if that is a good idea depends on your requirements and other dependencies. 如果是个好主意,则取决于您的要求和其他依赖性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM