无法使用 python 3.2 安装 distribution


pip install --upgrade distribute

引发以下错误。

Downloading/unpacking distribute from http://pypi.python.org/packages/sourc
e/d/distribute/distribute-0.6.25.tar.gz#md5=a690874b9964d958a3200485eb827b1
d
  Running setup.py egg_info for package distribute
    Traceback (most recent call last):
      File "<string>", line 3, in <module>
      File "setuptools__init__.py", line 2, in <module>
        from setuptools.extension import Extension, Library
      File "setuptoolsextension.py", line 2, in <module>
        from setuptools.dist import _get_unpatched
      File "setuptoolsdist.py", line 103
        except ValueError, e:
                         ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "setuptools__init__.py", line 2, in <module>
    from setuptools.extension import Extension, Library
  File "setuptoolsextension.py", line 2, in <module>
    from setuptools.dist import _get_unpatched
  File "setuptoolsdist.py", line 103
    except ValueError, e:
                     ^
SyntaxError: invalid syntax

看起来你的pip版本与Python 3不兼容。跑

pip --version

如果版本<1.1,请先尝试更新 pip。

更新:显然这是分发的已知问题。

相关内容

  • 没有找到相关文章

最新更新