pip3 install pyzmail 提示错误,不知道怎么解决

2017-12-08 12:05:01 +08:00
 swx934

wilson@linux:~$ pip3 install pyzmail Collecting pyzmail Downloading pyzmail-1.0.3.tar.gz (57kB) 100% |████████████████████████████████| 61kB 197kB/s Collecting distribute (from pyzmail) Using cached distribute-0.7.3.zip Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-5w0ar9i7/distribute/setuptools/init.py", line 2, in <module> from setuptools.extension import Extension, Library File "/tmp/pip-build-5w0ar9i7/distribute/setuptools/extension.py", line 5, in <module> from setuptools.dist import _get_unpatched File "/tmp/pip-build-5w0ar9i7/distribute/setuptools/dist.py", line 7, in <module> from setuptools.command.install import install File "/tmp/pip-build-5w0ar9i7/distribute/setuptools/command/init.py", line 8, in <module> from setuptools.command import install_scripts File "/tmp/pip-build-5w0ar9i7/distribute/setuptools/command/install_scripts.py", line 3, in <module> from pkg_resources import Distribution, PathMetadata, ensure_directory File "/tmp/pip-build-5w0ar9i7/distribute/pkg_resources.py", line 1518, in <module> register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider) AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-5w0ar9i7/distribute/

3636 次点击
所在节点    Python
2 条回复
praynise
2017-12-08 12:52:34 +08:00
你用的 python 是多少版本的啊,如果是 3.6 的话有一个专门的 pyzmail36
swx934
2017-12-08 13:32:31 +08:00
@praynise 是 3.6.3,已经采用了你的建议,OK 了 Successfully installed pyzmail36-1.0.3

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/413063

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX