pip安装wsgiref报错"Command python setup.py egg_info failed"

发布于 2022-09-04 01:20:22 字数 1815 浏览 20 评论 0

pip安装wsgiref报错"Command python setup.py egg_info failed with error code 1 in /Users/agdragon/.pyenv/versions/3.4.2/envs/homerenter/build/wsgiref"

详细:

(homerenter) agdragondeMacBook-Pro:homerenter agdragon$ pip install wsgiref==0.1.2
Downloading/unpacking wsgiref==0.1.2
  Downloading wsgiref-0.1.2.zip
  Running setup.py (path:/Users/agdragon/.pyenv/versions/3.4.2/envs/homerenter/build/wsgiref/setup.py) egg_info for package wsgiref
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/Users/agdragon/.pyenv/versions/3.4.2/envs/homerenter/build/wsgiref/setup.py", line 5, in <module>
        import ez_setup
      File "/Users/agdragon/.pyenv/versions/3.4.2/envs/homerenter/build/wsgiref/ez_setup/__init__.py", line 170
        print "Setuptools version",version,"or greater has been installed."
                                 ^
    SyntaxError: Missing parentheses in call to 'print'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/Users/agdragon/.pyenv/versions/3.4.2/envs/homerenter/build/wsgiref/setup.py", line 5, in <module>

    import ez_setup

  File "/Users/agdragon/.pyenv/versions/3.4.2/envs/homerenter/build/wsgiref/ez_setup/__init__.py", line 170

    print "Setuptools version",version,"or greater has been installed."

                             ^

SyntaxError: Missing parentheses in call to 'print'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /Users/agdragon/.pyenv/versions/3.4.2/envs/homerenter/build/wsgiref
Storing debug log for failure in /Users/agdragon/.pip/pip.log

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尘世孤行 2022-09-11 01:20:22

你在darwin系统内的python 用的是python3 ,但安装代码用的是python2,所以,如果你要修改一点小代码。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文