简体   繁体   English

文件“/scratch/tmp/pip-install-8emz1jxb/parallel/pprocess.py”,第 255 行引发 AcknowledgementError,obj SyntaxError:无效语法

[英]File "/scratch/tmp/pip-install-8emz1jxb/parallel/pprocess.py", line 255 raise AcknowledgementError, obj SyntaxError: invalid syntax

I am not sure how to get this fixed.我不知道如何解决这个问题。 My pip version is 18.1: Installing the parallel package from PyCharm:我的 pip 版本是 18.1:从 PyCharm 安装并行包:

Collecting parallel
  Downloading https://files.pythonhosted.org/packages/31/5b/66966fb4d103191b7cbc92730db6a335986fbdb3d9f55cbb54b7ba87e9d4/parallel-0.2.5.tar.gz (57kB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/scratch/tmp/pycharm-packaging/parallel/setup.py", line 5, in <module>
        import pprocess
      File "/scratch/tmp/pycharm-packaging/parallel/pprocess.py", line 255
        raise AcknowledgementError, obj
                                  ^
    SyntaxError: invalid syntax

    ----------------------------------------

  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
Command "python setup.py egg_info" failed with error code 1 in /scratch/tmp/pycharm-packaging/parallel/
You are using pip version 9.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Installing the PyCharm package from terminal:从终端安装 PyCharm 包:

$  pip3  install --user  parallel
Collecting parallel
  Using cached https://files.pythonhosted.org/packages/31/5b/66966fb4d103191b7cbc92730db6a335986fbdb3d9f55cbb54b7ba87e9d4/parallel-0.2.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/scratch/tmp/pip-install-8emz1jxb/parallel/setup.py", line 5, in <module>
        import pprocess
      File "/scratch/tmp/pip-install-8emz1jxb/parallel/pprocess.py", line 255
        raise AcknowledgementError, obj
                                  ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in 

    /scratch/tmp/pip-install-8emz1jxb/parallel/
    [jalal@goku]$  pip3  install --user  pandas
    Requirement already satisfied: pandas in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (0.22.0)
    Requirement already satisfied: python-dateutil>=2 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from pandas) (2.6.1)
    Requirement already satisfied: pytz>=2011k in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from pandas) (2017.3)
    Requirement already satisfied: numpy>=1.9.0 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from pandas) (1.15.2)
    Requirement already satisfied: six>=1.5 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from python-dateutil>=2->pandas) (1.11.0)



$ pip install --upgrade pip
Requirement already up-to-date: pip in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (18.1)
$ pip3 install --upgrade pip
Requirement already up-to-date: pip in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (18.1)
$ which pip
/scratch/sjn-p3/anaconda/anaconda3/bin/pip
$ which pip3
/scratch/sjn-p3/anaconda/anaconda3/bin/pip3

I downloaded & opened the tar.gz file from that pypi cache url to make sure, and confirmed that what you were trying to do was to install a module that was both abandoned & didn't even passed status alpha since 2007 , for Python 3. That will never work. 我从pypi缓存URL下载并打开tar.gz文件以确保确定,并确认您要安装的模块是为Python 3安装的,该模块自2007年以来被放弃并且甚至没有通过状态alpha那永远都行不通。 I'd suggest not to install the author recommendation module as well given that it's also isn't maintained since 2016. 我建议也不要安装作者推荐模块,因为自2016年以来也未对其进行过维护。
https://pypi.org/project/parallel/0.2.5%20(deprecated%20-%20see%20pprocess)/ https://pypi.org/project/parallel/0.2.5%20(不建议使用%20-%20see%20pprocess)/

You can use "from joblib import Parallel,delayed".您可以使用“from joblib import Parallel,delayed”。 just install joblib.只需安装joblib。

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

相关问题 pip install错误输出:SyntaxError:语法无效 - pip install errors out: SyntaxError: invalid syntax 为什么“pip install”会在 setup.py 中引发 SyntaxError? - Why does "pip install" raise a SyntaxError in setup.py? pip install WakaDump: SyntaxError: 除了 TypeError, e 语法无效 - pip install WakaDump: SyntaxError: invalid syntax at except TypeError, e python setup.py install SyntaxError:语法无效926 - python setup.py install SyntaxError: invalid syntax 926 WingIDE C:\\Python27 __init__.py&quot; 引发 CodecRegistryError SyntaxError: invalid syntax - WingIDE C:\Python27 __init__.py" raise CodecRegistryError SyntaxError: invalid syntax pip3 安装失败,没有这样的文件或目录:'/tmp/pip-dvxrqtnr-build/setup.py' - pip3 install failing with No such file or directory: '/tmp/pip-dvxrqtnr-build/setup.py' SyntaxError:在OSX上安装pip时语法无效 - SyntaxError: invalid syntax wheninstalling pip on OSX setup.py 中的 SyntaxError with pip to install module - SyntaxError in setup.py with pip to install module 为什么 Python 中的“pip install”会引发 SyntaxError? - Why does "pip install" inside Python raise a SyntaxError? SyntaxError:运行python manage.py syncdb时语法无效(connections.py,第36行) - SyntaxError: invalid syntax (connections.py, line 36) when running python manage.py syncdb
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM