Python 包装';预处理';使用pip命令安装时出错

Python 包装';预处理';使用pip命令安装时出错,python,pip,package,Python,Pip,Package,我试图从pyCharm IDE的内部终端安装包“preprocess”,但它显示了以下错误 我试过这个命令 pip install preprocess 我得到了以下错误 Collecting preprocess Using cached https://files.pythonhosted.org/packages/05/f9/559841df6c91428a2024ce120d92 192844178e4b2ceec1da84ce18205380/pr e

我试图从pyCharm IDE的内部终端安装包“preprocess”,但它显示了以下错误

我试过这个命令

pip install preprocess
我得到了以下错误

Collecting preprocess
Using cached 
    https://files.pythonhosted.org/packages/05/f9/559841df6c91428a2024ce120d92        192844178e4b2ceec1da84ce18205380/pr
    eprocess-1.1.0.zip
ERROR: Command errored out with exit status 1:
command: 'c:\users\majid\appdata\local\programs\python\python38-        32\python.exe' -c 'import sys, setuptools, tokenize; sy
    s.argv[0] = '"'"'C:\\Users\\majid\\AppData\\Local\\Temp\\pip-        install-rsxg10hs\\preprocess\\setup.py'"'"'; __file__='"'"'C:\\
    Users\\majid\\AppData\\Local\\Temp\\pip-install-        rsxg10hs\\preprocess\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"',         open
    )(__file__);code=f.read().replace('"'"'\r\n'"'"',         '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg
    _info --egg-base 'C:\Users\majid\AppData\Local\Temp\pip-install-        rsxg10hs\preprocess\pip-egg-info'

cwd: C:\Users\majid\AppData\Local\Temp\pip-install-        rsxg10hs\preprocess\
    Complete output (8 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\majid\AppData\Local\Temp\pip-install-rsxg10hs\preprocess\setup.py", line 28, in <module>
    import preprocess
  File "C:\Users\majid\AppData\Local\Temp\pip-install-rsxg10hs\preprocess\lib\preprocess.py", line 264
    except Exception, ex:
                    ^
SyntaxError: invalid syntax
----------------------------------------
    ERROR: Command errored out with exit status 1: python setup.py         egg_info Check the logs for full command output.
收集预处理
使用缓存
https://files.pythonhosted.org/packages/05/f9/559841df6c91428a2024ce120d92        192844178e4b2ceec1da84ce18205380/pr
eprocess-1.1.0.zip
错误:命令出错,退出状态为1:
命令:“c:\users\majid\appdata\local\programs\python\python38-32\python.exe'-c”import sys,setuptools,tokenize;sy
s、 argv[0]=“C:\\Users\\majid\\AppData\\Local\\Temp\\pip-install-rsxg10hs\\preprocess\\setup.py”“”__文件\ \=''''''''C:\\
用户\\majid\\AppData\\Local\\Temp\\pip安装-rsxg10hs\\preprocess\\setup.py'';f=getattr(标记化,“‘打开’”,打开
)(文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,文件,exec),egg
_信息--egg base'C:\Users\majid\AppData\Local\Temp\pip install-rsxg10hs\preprocess\pip egg信息'
cwd:C:\Users\majid\AppData\Local\Temp\pip安装-rsxg10hs\preprocess\
完整输出(8行):
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Users\majid\AppData\Local\Temp\pip-install-rsxg10hs\preprocess\setup.py”,第28行,在
导入预处理
文件“C:\Users\majid\AppData\Local\Temp\pip-install-rsxg10hs\preprocess\lib\preprocess.py”,第264行
除例外情况外,例如:
^
SyntaxError:无效语法
----------------------------------------
错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获得完整的命令输出。
如图所示,这是一个非常老的项目,已经10多年没有发布过了。它不太可能与当前版本的Python兼容。问题中的错误输出似乎显示错误消息来自于尝试安装Python3.8项目,而错误本身似乎表明它在使用Python2语法的代码中失败

我不推荐使用这个项目。或者,您可以尝试将其与Python 2版本的解释器一起使用。

如图所示,这是一个非常古老的项目,已经10多年没有发布过了。它不太可能与当前版本的Python兼容。问题中的错误输出似乎显示错误消息来自于尝试安装Python3.8项目,而错误本身似乎表明它在使用Python2语法的代码中失败

我不推荐使用这个项目。或者,您可以尝试将其与Python 2版本的解释器一起使用