Pip安装magpie错误:命令出错,退出状态为1

2024-04-29 03:35:33 发布

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

(base) Niklass-MacBook-Pro:~ niklasroberts$ pip3 install magpie
Collecting magpie
  Using cached magpie-0.1.0.tar.gz (56 kB)
Collecting argparse==1.2.1
  Using cached argparse-1.2.1.tar.gz (69 kB)
Collecting backports.ssl-match-hostname==3.4.0.2
  Using cached backports.ssl_match_hostname-3.4.0.2.tar.gz (5.2 kB)
Collecting filemagic==1.6
  Using cached filemagic-1.6.tar.gz (16 kB)
Collecting markdown2==2.2.1
  Using cached markdown2-2.2.1.zip (138 kB)
Collecting py-bcrypt==0.4
  Using cached py-bcrypt-0.4.tar.gz (27 kB)
Collecting pyPdf==1.13
  Using cached pyPdf-1.13.tar.gz (35 kB)
Collecting sh==1.09
  Using cached sh-1.09.tar.gz (26 kB)
Collecting tornado==3.2
  Using cached tornado-3.2.tar.gz (400 kB)
Collecting wsgiref==0.1.2
  Using cached wsgiref-0.1.2.zip (37 kB)
    ERROR: Command errored out with exit status 1:
     command: /Users/niklasroberts/.pyenv/versions/3.7.3/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/m6/zp9c98hs2q3b8pvjz2gj6nzw0000gn/T/pip-install-0onf8qup/wsgiref/setup.py'"'"'; __file__='"'"'/private/var/folders/m6/zp9c98hs2q3b8pvjz2gj6nzw0000gn/T/pip-install-0onf8qup/wsgiref/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 /private/var/folders/m6/zp9c98hs2q3b8pvjz2gj6nzw0000gn/T/pip-pip-egg-info-8o9qy2d_
         cwd: /private/var/folders/m6/zp9c98hs2q3b8pvjz2gj6nzw0000gn/T/pip-install-0onf8qup/wsgiref/
    Complete output (8 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/m6/zp9c98hs2q3b8pvjz2gj6nzw0000gn/T/pip-install-0onf8qup/wsgiref/setup.py", line 5, in <module>
        import ez_setup
      File "/private/var/folders/m6/zp9c98hs2q3b8pvjz2gj6nzw0000gn/T/pip-install-0onf8qup/wsgiref/ez_setup/__init__.py", line 170
        print "Setuptools version",version,"or greater has been installed."
                                 ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Setuptools version",version,"or greater has been installed.")?
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

我正在mac os X Mojave 10.14.6上运行。我是一个命令行新手,我很迷茫。我看到这个post并使用brew安装postgresql,但这似乎并没有解决我的任何问题


Tags: installpippykbvartarprivatefolders
1条回答
网友
1楼 · 发布于 2024-04-29 03:35:33

2014年7月16日发布Declares compatibility仅适用于Python 2.7

^{} 0.1.2,于2006年6月12日发布。声明与Python版本的兼容性<;3.2. 但是ez_setup中的代码与Python 3完全不兼容

一句话:您正在尝试安装太旧的软件包,它们应该只与Python2.7一起安装

相关问题 更多 >