LoginSignup
0
0

More than 1 year has passed since last update.

[python] distutilsが非推奨でwarningが出る時の解決

Last updated at Posted at 2022-10-25

pylintにsetup.pyをかけたところ,

pylint setup.py
setup.py:12:0: W0402: Uses of a deprecated module 'distutils.core' (deprecated-module)

と警告が出力された.

【解決方法】
python3.10および3.11から,distutilsが非推奨となる.
(https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html)

新たにsetuptoolsを使う必要がある.

setupt.py
from distutils.core import setup

から

setup.py
from setuptools import setup

に変更することで警告を解消.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0