Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install ipaddr via python pip




ipaddr - Google's IP address manipulation library, it belongs to Classifiers:

- Development Status :: 6 - Mature
- Topic :: Internet
- Topic :: System
- Topic :: System :: Networking

When you know about this project and you want to new install ipaddr to support your project or you get trouble as ModuleNotFoundError: No module named "ipaddr" or ImportError: cannot import name "ipaddr" in your project, let follow this tutorial to install ipaddr



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_ipaddr_env

- Active the virtual environment

test_ipaddr_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_ipaddr_env

- Active the virtual environment

source test_ipaddr_env/bin/active


Step 2: OK, now, let flow below content to start the installation ipaddr

To install ipaddr on Windows(CMD):

py -m pip install ipaddr

To install ipaddr on Unix/macOs:

pip install ipaddr


Step 3: If you want to install a specific ipaddr version, add ==<ipaddr version> to the end command line

Example:

pip install ipaddr==1.0.0


Please see the version list below table:

VersionReleased dateCommand
ipaddr 2.2.02017-09-15T20:08:39Windows:

py -m pip install ipaddr==2.2.0

Unix/macOs:

pip install ipaddr==2.2.0

ipaddr 2.1.112014-02-07T18:04:13Windows:

py -m pip install ipaddr==2.1.11

Unix/macOs:

pip install ipaddr==2.1.11

ipaddr 2.1.102014-01-31T21:09:38Windows:

py -m pip install ipaddr==2.1.10

Unix/macOs:

pip install ipaddr==2.1.10

ipaddr 2.1.72011-01-13T21:04:20Windows:

py -m pip install ipaddr==2.1.7

Unix/macOs:

pip install ipaddr==2.1.7

ipaddr 2.1.62011-01-13T20:32:03Windows:

py -m pip install ipaddr==2.1.6

Unix/macOs:

pip install ipaddr==2.1.6

ipaddr 2.0.02009-09-08T17:48:15Windows:

py -m pip install ipaddr==2.0.0

Unix/macOs:

pip install ipaddr==2.0.0

ipaddr 1.0.22009-02-03T05:27:12Windows:

py -m pip install ipaddr==1.0.2

Unix/macOs:

pip install ipaddr==1.0.2

ipaddr 1.0.02008-10-03T18:32:45Windows:

py -m pip install ipaddr==1.0.0

Unix/macOs:

pip install ipaddr==1.0.0


Step 4: Otherwise, you can install ipaddr from local archives:

Download the distribution file from ipaddr-2.2.0.tar.gz or the specific ipaddr version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_ipaddr_downloaded_file>

On Unix/macOs:

pip install <path_to_ipaddr_downloaded_file>


List distribution:

- ipaddr-1.0.2.tar.gz
- ipaddr-2.1.10.tar.gz
- ipaddr-2.1.11.tar.gz
- ipaddr-2.2.0.tar.gz


Project link:

- Homepage