[DEPRECATION WARNING]: Distribution Ubuntu 18.04 on host 192.168.20.123 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
时间: 2024-03-07 18:53:56 浏览: 23
这是一个 Ansible 的警告信息,意思是在主机 192.168.20.123 上,使用的是不推荐使用的 Python 解释器 /usr/bin/python 而不是 /usr/bin/python3。这是为了向后兼容之前的 Ansible 版本。但是,在将来的 Ansible 版本中,默认会使用在该主机上发现的平台 Python 解释器。要了解更多信息,请参考 https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html。如果你不想看到这个警告信息,可以在 ansible.cfg 文件中将 deprecation_warnings 设置为 False。
相关问题
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
这个警告是由Dart Sass编译器发出的,它表示在样式表中使用“/”除法运算符时,必须使用calc()函数将其包装起来。这是因为在Dart Sass 2.0.0中,使用“/”除法运算符进行除法运算将不再被支持。相反,将只支持使用“/”除法运算符来表示路径分隔符。因此,为了确保您的样式表在未来版本的Dart Sass中继续工作,建议您将除法运算符包装在calc()函数中。
DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead
这个警告信息是告诉你使用了已经被弃用的 distutils Version 类。建议使用 packaging.version 替代。你可以通过以下方式解决:
```python
import packaging.version
version = packaging.version.parse("1.2.3")
```
或者在代码开头加上以下代码来忽略 DeprecationWarning:
```python
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
```