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

How to install port-for via python pip




port-for - Utility that helps with local TCP ports management. It can find an unused TCP localhost port and remember the association., it belongs to Classifiers:

- Intended Audience :: System Administrators
- Operating System :: POSIX
- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.10
- Topic :: Internet
- Topic :: Internet :: WWW/HTTP
- Topic :: Internet :: WWW/HTTP :: Site Management
- Topic :: System
- Topic :: System :: Installation/Setup
- Topic :: System :: Systems Administration

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



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_port-for_env

- Active the virtual environment

test_port-for_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_port-for_env

- Active the virtual environment

source test_port-for_env/bin/active


Step 2: OK, now, let flow below content to start the installation port-for

To install port-for on Windows(CMD):

py -m pip install port-for

To install port-for on Unix/macOs:

pip install port-for


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

Example:

pip install port-for==0.1


Please see the version list below table:

VersionReleased dateCommand
port-for 0.6.22022-02-14T10:40:15Windows:

py -m pip install port-for==0.6.2

Unix/macOs:

pip install port-for==0.6.2

port-for 0.6.12021-06-01T13:04:44Windows:

py -m pip install port-for==0.6.1

Unix/macOs:

pip install port-for==0.6.1

port-for 0.6.02021-05-31T16:18:02Windows:

py -m pip install port-for==0.6.0

Unix/macOs:

pip install port-for==0.6.0

port-for 0.5.02021-05-05T15:21:27Windows:

py -m pip install port-for==0.5.0

Unix/macOs:

pip install port-for==0.5.0

port-for 0.42017-07-19T14:54:08Windows:

py -m pip install port-for==0.4

Unix/macOs:

pip install port-for==0.4

port-for 0.3.12014-08-27T00:53:55Windows:

py -m pip install port-for==0.3.1

Unix/macOs:

pip install port-for==0.3.1

port-for 0.32012-06-18T08:39:41Windows:

py -m pip install port-for==0.3

Unix/macOs:

pip install port-for==0.3

port-for 0.22012-06-15T11:54:41Windows:

py -m pip install port-for==0.2

Unix/macOs:

pip install port-for==0.2

port-for 0.12012-06-15T07:35:22Windows:

py -m pip install port-for==0.1

Unix/macOs:

pip install port-for==0.1


Step 4: Otherwise, you can install port-for from local archives:

Download the distribution file from port-for-0.6.2.tar.gz or the specific port-for version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_port-for_downloaded_file>

On Unix/macOs:

pip install <path_to_port-for_downloaded_file>


List distribution:


Project link:

- Homepage