V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
swx934
V2EX  ›  Python

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

  •  
  •   swx934 · 2017-12-08 12:05:01 +08:00 · 3175 次点击
    这是一个创建于 1821 天前的主题,其中的信息可能已经有所发展或是发生改变。

    [email protected]:~$ 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/

    2 条回复    2017-12-08 13:32:31 +08:00
    praynise
        1
    praynise  
       2017-12-08 12:52:34 +08:00
    你用的 python 是多少版本的啊,如果是 3.6 的话有一个专门的 pyzmail36
    swx934
        2
    swx934  
    OP
       2017-12-08 13:32:31 +08:00
    @praynise 是 3.6.3,已经采用了你的建议,OK 了 Successfully installed pyzmail36-1.0.3
    关于   ·   帮助文档   ·   API   ·   FAQ   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   2885 人在线   最高记录 5497   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 06:36 · PVG 14:36 · LAX 22:36 · JFK 01:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.