【问题标题】:pip install error for pyzmail on mac (10.15.5) [duplicate]mac(10.15.5)上pyzmail的pip安装错误[重复]
【发布时间】:2020-10-29 09:16:27
【问题描述】:

在 Mac OS (v10.15.5) 上为 Python 安装“pyzmail”时出现错误。请参阅底部的错误代码。我尝试使用 pip(当前运行 v19.2.3)通过终端加载 pyzmail,就像我执行任何其他模块一样。我安装 8 个左右的其他模块(pyperclip、nltk 等)没有问题。任何帮助将不胜感激!

引发此错误的确切语法如下:

pip3 install pyzmail


 ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4m/pjsf6l4s5n35mzvfwfmplf5h0000gn/T/pip-install-vxmcvxlo/distribute/setup.py'"'"'; __file__='"'"'/private/var/folders/4m/pjsf6l4s5n35mzvfwfmplf5h0000gn/T/pip-install-vxmcvxlo/distribute/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 pip-egg-info
         cwd: /private/var/folders/4m/pjsf6l4s5n35mzvfwfmplf5h0000gn/T/pip-install-vxmcvxlo/distribute/
    Complete output (15 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/4m/pjsf6l4s5n35mzvfwfmplf5h0000gn/T/pip-install-vxmcvxlo/distribute/setuptools/__init__.py", line 2, in <module>
        from setuptools.extension import Extension, Library
      File "/private/var/folders/4m/pjsf6l4s5n35mzvfwfmplf5h0000gn/T/pip-install-vxmcvxlo/distribute/setuptools/extension.py", line 5, in <module>
        from setuptools.dist import _get_unpatched
      File "/private/var/folders/4m/pjsf6l4s5n35mzvfwfmplf5h0000gn/T/pip-install-vxmcvxlo/distribute/setuptools/dist.py", line 7, in <module>
        from setuptools.command.install import install
      File "/private/var/folders/4m/pjsf6l4s5n35mzvfwfmplf5h0000gn/T/pip-install-vxmcvxlo/distribute/setuptools/command/__init__.py", line 8, in <module>
        from setuptools.command import install_scripts
      File "/private/var/folders/4m/pjsf6l4s5n35mzvfwfmplf5h0000gn/T/pip-install-vxmcvxlo/distribute/setuptools/command/install_scripts.py", line 3, in <module>
        from pkg_resources import Distribution, PathMetadata, ensure_directory
      File "/private/var/folders/4m/pjsf6l4s5n35mzvfwfmplf5h0000gn/T/pip-install-vxmcvxlo/distribute/pkg_resources.py", line 1518, in <module>
        register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
    AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

【问题讨论】:

标签: python python-3.x macos pip


【解决方案1】:

希望这能解决您的问题:easy_install pyzmail
如果您有任何问题,请告诉我。

【讨论】:

    猜你喜欢
    • 2016-08-07
    • 2016-10-12
    • 2017-04-16
    • 2017-05-19
    • 2020-03-12
    • 2017-04-05
    • 2013-09-03
    • 1970-01-01
    • 2021-09-16
    相关资源
    最近更新 更多