0
(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 install postgresql ,但这似乎并没有解决我的任何问题。

4

1 回答 1

1

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

wsgiref0.1.2,于 2006 年 6 月 12 日发布。声明与 Python 版本 < 3.2 的兼容性。但是里面的代码ez_setup根本不兼容 Python 3。

底线:您正在尝试安装太旧的软件包,它们只能与 Python 2.7 一起安装。

于 2020-06-15T14:31:13.863 回答