Pip Install magpie error: Command Errored out with exit status 1

Posted

技术标签:

【中文标题】Pip Install magpie error: Command Errored out with exit status 1【英文标题】: 【发布时间】:2020-10-04 21:11:41 【问题描述】:
(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 install postgresql,但这似乎并没有解决我的任何问题。

【问题讨论】:

【参考方案1】:

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

wsgiref 0.1.2,2006 年 6 月 12 日发布。声明与 Python 版本 ez_setup 中的代码根本不兼容 Python 3。

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

【讨论】:

好的,谢谢。我发现我遇到的错误是我试图安装私人软件,所以一旦我获得访问权限,它就一切正常了。

以上是关于Pip Install magpie error: Command Errored out with exit status 1的主要内容,如果未能解决你的问题,请参考以下文章

pip install Error - ReadTimeoutError: HTTPSConnectionPool

pip install PIL报错问题解决

pip install error 之ReadTimeoutError: HTTPSConnectionPool

pip install 时locale.Error: unsupported locale setting

# pip install scipy -- distutils.errors.LinkError: Command

Memory error while using pip install Airflow