from socketserver import ForkingMixIn 报错 cannot import name 'ForkingMixIn'
python 版本是 3.6 的
from socketserver import ForkingMixIn 报错 cannot import name 'ForkingMixIn'
python 版本是 3.6 的
1
PureWhite Mar 13, 2018
提问之前请自己先 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 |
2
supervipcard OP @PureWhite 当然 Google 过了,有人说这是 Werkzeug 旧版本的 bug,需要更新到最新版本。然而我更新了,并没有用 。另外我在 Ubuntu 上用 python3.5 和 3.6 都试过了,没问题。
|
3
supervipcard OP @PureWhite 好吧 知道了 谢谢回复
|
4
julyclyde Mar 14, 2018
@supervipcard 你 google 过了也没搞明白为什么,只是照着别人的步骤去做而已
|