python3.x - pip安装wsgiref报错"Command python setup.py egg_info failed"
伊谢尔伦
伊谢尔伦 2017-04-18 09:48:15
0
1
2130

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
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
迷茫

You use python3 in the darwin system, but the installation code uses python2, so if you want to modify a small code.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template