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
supervipcard
V2EX  ›  Python

cannot import name 'ForkingMixIn'

  •  
  •   supervipcard · 2018-03-13 15:06:59 +08:00 · 2449 次点击
    这是一个创建于 2226 天前的主题,其中的信息可能已经有所发展或是发生改变。

    from socketserver import ForkingMixIn 报错 cannot import name 'ForkingMixIn'
    python 版本是 3.6 的

    4 条回复    2018-03-14 12:05:03 +08:00
    PureWhite
        1
    PureWhite  
       2018-03-13 15:26:13 +08:00
    提问之前请自己先 Google。

    Check if OS can fork before importing ForkingMixIn since Python 3.6 will no longer define that when it is not available on the operating system (python/cpython@aadff9b) and ImportError: cannot import name 'ForkingMixIn' will occur.

    https://github.com/pallets/werkzeug/pull/999
    supervipcard
        2
    supervipcard  
    OP
       2018-03-13 15:58:36 +08:00
    @PureWhite 当然 Google 过了,有人说这是 Werkzeug 旧版本的 bug,需要更新到最新版本。然而我更新了,并没有用 。另外我在 Ubuntu 上用 python3.5 和 3.6 都试过了,没问题。
    supervipcard
        3
    supervipcard  
    OP
       2018-03-13 16:07:22 +08:00
    @PureWhite 好吧 知道了 谢谢回复
    julyclyde
        4
    julyclyde  
       2018-03-14 12:05:03 +08:00
    @supervipcard 你 google 过了也没搞明白为什么,只是照着别人的步骤去做而已
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3518 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 11:36 · PVG 19:36 · LAX 04:36 · JFK 07:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.