(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,但这似乎并不能解决我的任何问题。
答案 0 :(得分:1)
magpie
0.1.0,于2014年7月16日发布。Declares compatibility仅适用于Python 2.7。
wsgiref
0.1.2,于2006年6月12日发布。声明与<3.2版的Python版本兼容。但是ez_setup
中的代码根本与Python 3不兼容。
底线:您正在尝试安装太旧的软件包,它们只能与Python 2.7一起安装。