Pab*_*mer 6 python multithreading
嗨我运行一个带有线程的子进程通过python包装器,当我使用子进程模块时,我得到以下警告.
"没有使用_posixsubprocess模块,如果程序使用线程,子进程可靠性可能会受到影响."
这意味着什么剂量?我怎么能摆脱它?
我的解决方案是执行以下操作:
pip uninstall subprocess32
pip install -U subprocess32
Run Code Online (Sandbox Code Playgroud)
最初,当我尝试导入时收到警告matplotlib
:
Python 2.7.13 (default, May 16 2017, 12:02:12)
[GCC 6.2.0 20160901] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
/home/methuselah/.local/lib/python2.7/site-packages/subprocess32.py:472: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your program uses threads.
"program uses threads.", RuntimeWarning)
>>>
Run Code Online (Sandbox Code Playgroud)
重新安装后subprocess32
,警告消失:
Python 2.7.13 (default, May 16 2017, 12:02:12)
[GCC 6.2.0 20160901] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>>
Run Code Online (Sandbox Code Playgroud)