socketserver模版中为什么没有ForkingMixIn类

使用Flask框架时出现ImportError:cannot import name 'ForkingMixIn'
自己到socketserver里查看也没有这个类

阅读 7.7k
3 个回答

pip install -U werkzeug

有的,不过这是werkzeug的一个bug。用python35吧。

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/we...

新手上路,请多包涵

windows不支持分叉