尝试酿造postinstall python3时出错

时间:2016-01-07 01:00:49

标签: python python-3.x homebrew

我需要pip3,所以我正在尝试brew install python3,因为它已包含在内。我遇到了这个错误(似乎涉及系统python)并且brew postinstall python3失败了。

我尝试删除自制程序安装的python3,但这没有任何帮助。

我跑了:

brew remove python3; brew install python3;

它说安装失败没有完成,所以我跑了:

brew postinstall python3

这是输出:

/usr/local/Cellar/python3/3.5.1/bin/python3
-s
setup.py
--no-user-cfg
install
--force
--verbose
--install-scripts=/usr/local/Cellar/python3/3.5.1/bin
--install-lib=/usr/local/lib/python3.5/site-packages
--single-version-externally-managed
--record=installed.txt

Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/enum/__init__.py", line 371, in __getattr__
    return cls._member_map_[name]
KeyError: '_convert'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 21, in <module>
    exec(init_file.read(), command_ns)
  File "<string>", line 11, in <module>
  File "/usr/local/Cellar/python3/3.5.1/libexec/setuptools/setuptools/__init__.py", line 12, in <module>
    from setuptools.extension import Extension
  File "/usr/local/Cellar/python3/3.5.1/libexec/setuptools/setuptools/extension.py", line 8, in <module>
    from .dist import _get_unpatched
  File "/usr/local/Cellar/python3/3.5.1/libexec/setuptools/setuptools/dist.py", line 16, in <module>
    from setuptools.depends import Require
  File "/usr/local/Cellar/python3/3.5.1/libexec/setuptools/setuptools/depends.py", line 6, in <module>
    from setuptools import compat
  File "/usr/local/Cellar/python3/3.5.1/libexec/setuptools/setuptools/compat.py", line 45, in <module>
    import http.client as httplib
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 71, in <module>
    import email.parser
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/email/parser.py", line 12, in <module>
    from email.feedparser import FeedParser, BytesFeedParser
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/email/feedparser.py", line 27, in <module>
    from email import message
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/email/message.py", line 16, in <module>
    from email import utils
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/email/utils.py", line 29, in <module>
    import socket
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/socket.py", line 73, in <module>
    IntEnum._convert(
  File "/Library/Python/2.7/site-packages/enum/__init__.py", line 373, in __getattr__
    raise AttributeError(name)
AttributeError: _convert

Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/bin/python2.7

0 个答案:

没有答案