= Python/netaddr = について、ここに記述してください。 netaddr.IPRange() Examples https://www.programcreek.com/python/example/57084/netaddr.IPRange ダウンロードして python setup.py installではエラーになった。 pip で試みたら、OKらしい。-- ToshinoriMaeno <> {{{ root@f:/usr/home/tmaeno/netaddr-0.8.0 # pip install netaddr Requirement already satisfied: netaddr in /usr/local/lib/python2.7/site-packages/netaddr-0.8.0-py2.7.egg Collecting importlib-resources; python_version < "3.7" (from netaddr) Downloading https://files.pythonhosted.org/packages/8d/94/2f6ceee0c4e63bff0177c07e68d27c937a19f6bc77c4739755b49f5adb04/importlib_resources-3.3.1-py2.py3-none-any.whl Collecting typing; python_version < "3.5" (from importlib-resources; python_version < "3.7"->netaddr) Downloading https://files.pythonhosted.org/packages/0b/cb/da856e81731833b94da70a08712f658416266a5fb2a9d9e426c8061becef/typing-3.10.0.0-py2-none-any.whl Collecting contextlib2; python_version < "3" (from importlib-resources; python_version < "3.7"->netaddr) Downloading https://files.pythonhosted.org/packages/85/60/370352f7ef6aa96c52fb001831622f50f923c1d575427d021b8ab3311236/contextlib2-0.6.0.post1-py2.py3-none-any.whl Collecting pathlib2; python_version < "3" (from importlib-resources; python_version < "3.7"->netaddr) Downloading https://files.pythonhosted.org/packages/e9/45/9c82d3666af4ef9f221cbb954e1d77ddbb513faf552aea6df5f37f1a4859/pathlib2-2.3.5-py2.py3-none-any.whl Collecting zipp>=0.4; python_version < "3.8" (from importlib-resources; python_version < "3.7"->netaddr) Downloading https://files.pythonhosted.org/packages/96/0a/67556e9b7782df7118c1f49bdc494da5e5e429c93aa77965f33e81287c8c/zipp-1.2.0-py2.py3-none-any.whl Collecting singledispatch; python_version < "3.4" (from importlib-resources; python_version < "3.7"->netaddr) Downloading https://files.pythonhosted.org/packages/7a/12/2b10635e91ec4007e2a287812b1a1c8649cf68686ff2d69ed97553cf8a7a/singledispatch-3.6.1-py2.py3-none-any.whl Requirement already satisfied: six in /usr/local/lib/python2.7/site-packages (from pathlib2; python_version < "3"->importlib-resources; python_version < "3.7"->netaddr) Collecting scandir; python_version < "3.5" (from pathlib2; python_version < "3"->importlib-resources; python_version < "3.7"->netaddr) Downloading https://files.pythonhosted.org/packages/df/f5/9c052db7bd54d0cbf1bc0bb6554362bba1012d03e5888950a4f5c5dadc4e/scandir-1.10.0.tar.gz Building wheels for collected packages: scandir Running setup.py bdist_wheel for scandir ... done Stored in directory: /root/.cache/pip/wheels/91/95/75/19c98a91239878abbc7c59970abd3b4e0438a7dd5b61778335 Successfully built scandir Installing collected packages: typing, contextlib2, scandir, pathlib2, zipp, singledispatch, importlib-resources Successfully installed contextlib2-0.6.0.post1 importlib-resources-3.3.1 pathlib2-2.3.5 scandir-1.10.0 singledispatch-3.6.1 typing-3.10.0.0 zipp-1.2.0 You are using pip version 9.0.1, however version 21.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. root@f:/usr/home/tmaeno/netaddr-0.8.0 # }}}