How do you correct Module already loaded UserWarnings in Python?

后端 未结 5 620
星月不相逢
星月不相逢 2021-01-01 16:48

Getting the following kinds of warnings when running most python scripts in the command line:

/Library/Python/2.6/site-packages/virtualenvwrapper/hook_loader         


        
5条回答
  •  余生分开走
    2021-01-01 17:21

    The python equivalent of putting a bit of electrical tape over the check engine light would be to use the -W command line flag or by adding a warning filter.

提交回复
热议问题