安装pylint for python3.3.4时,astroid 1.3.6包出错

2024-04-29 17:14:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在unix服务器上安装pylint。我知道在安装pylint包之前,我需要安装两个包。在

  1. 星型封装
  2. logilab通用软件包
  3. 最后pylint包

但是在安装astroid时,我得到了一个奇怪的语法错误。我已经把下面的错误贴出来了。为我的python安装pylint模块热吗?在

Python版本:3.3.4 星形版本:1.3.6 服务器:Unix服务器

错误消息:

这是astroid安装的输出:

Extracting astroid-1.3.6-py3.3.egg to /project/3rdParty_RH5/3rdParty_con_final/3rdParty/python-3.3.4/lib/python3.3/site-packages File "/project/3rdParty_RH5/3rdParty_con_final/3rdParty/python-3.3.4/lib/python3.3/site-packages/astroid-1.3.6-py3.3.egg/astroid/tests/testdta/python2/data/module.py", line 32 except ValueError, ex: ^ SyntaxError: invalid syntax

File "/project/3rdParty_RH5/3rdParty_con_final/3rdParty/python-3.3.4/lib/python3.3/site-packages/astroid-1.3.6-py3.3.egg/astroid/tests/testdta/python2/data/all.py", line 7 def func(): print 'yo' ^ SyntaxError: invalid syntax

File "/project/3rdParty_RH5/3rdParty_con_final/3rdParty/python-3.3.4/lib/python3.3/site-packages/astroid-1.3.6-py3.3.egg/astroid/tests/testdta/python2/data/module2.py", line 78 exec 'c = 3' ^ SyntaxError: invalid syntax

File "/project/3rdParty_RH5/3rdParty_con_final/3rdParty/python-3.3.4/lib/python3.3/site-packages/astroid-1.3.6-py3.3.egg/astroid/tests/testdta/python2/data/noendingnewline.py", line 21 print 'a' ^ SyntaxError: invalid syntax

File "/project/3rdParty_RH5/3rdParty_con_final/3rdParty/python-3.3.4/lib/python3.3/site-packages/astroid-1.3.6-py3.3.egg/astroid/tests/testdta/python2/data/appl/myConnection.py", line 1 from future import print_statement SyntaxError: future feature print_statement is not defined

astroid 1.3.6 is already the active version in easy-install.pth

Installed /project/3rdParty_RH5/3rdParty_con_final/3rdParty/python-3.3.4/lib/python3.3/site-packages/astroid-1.3.6-py3.3.egg Processing dependencies for astroid==1.3.6 Searching for six==1.5.2 Best match: six 1.5.2 Processing six-1.5.2-py3.3.egg six 1.5.2 is already the active version in easy-install.pth

Using /project/3rdParty_RH5/3rdParty_con_final/3rdParty/python-3.3.4/lib/python3.3/site-packages/six-1.5.2-py3.3.egg Searching for logilab-common==0.63.2 Best match: logilab-common 0.63.2 Processing logilab_common-0.63.2-py3.3.egg logilab-common 0.63.2 is already the active version in easy-install.pth Installing pytest script to /opt/atseintl/3rdParty/python-3.3.4/bin

Using /project/3rdParty_RH5/3rdParty_con_final/3rdParty/python-3.3.4/lib/python3.3/site-packages/logilab_common-0.63.2-py3.3.egg Finished processing dependencies for astroid==1.3.6


Tags: projectdataegglibpackagessitetestscon