1
arrow8899 2019-09-18 09:32:03 +08:00
|
2
delectate 2019-09-18 09:33:07 +08:00
The NullHandler is only available on Python version 2.7+. You could create the NullHandler yourself on an ImportError:
import logging try: from logging import NullHandler except ImportError: class NullHandler(logging.Handler): def emit(self, record): pass logging.getLogger(__name__).addHandler(NullHandler()) https://stackoverflow.com/questions/26939308/importerror-cannot-import-name-nullhandler |
3
cwjokaka 2019-09-18 09:42:25 +08:00
遇到 pip 相关的问题,如果解决不了,我都会重建一个 venv
|