当前位置: 首页 > 知识库问答 >
问题:

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

袁法
2023-03-14
(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上运行。我是一个命令行新手,我很迷茫。我看到这篇文章,并使用brew安装postgresql,但这似乎并没有解决我的任何问题。

共有1个答案

越骏俊
2023-03-14

mappie0.1。0,于2014年7月16日发布。声明仅与Python 2.7兼容。

wsgiref0.1.2,于2006年6月12日发布。声明与Python版本的兼容性

总而言之:您试图安装的软件包太旧了,它们应该只安装在Python 2.7中。

 类似资料: