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

How to install milight via python pip




milight - Controller for milight/limitlessled Wi-Fi LEDs, it belongs to Classifiers:

- Topic :: Home Automation

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



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_milight_env

- Active the virtual environment

test_milight_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_milight_env

- Active the virtual environment

source test_milight_env/bin/active


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

To install milight on Windows(CMD):

py -m pip install milight

To install milight on Unix/macOs:

pip install milight


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

Example:

pip install milight==0.1


Please see the version list below table:

VersionReleased dateCommand
milight 0.62015-03-20T01:41:34Windows:

py -m pip install milight==0.6

Unix/macOs:

pip install milight==0.6

milight 0.5.22015-03-19T02:01:12Windows:

py -m pip install milight==0.5.2

Unix/macOs:

pip install milight==0.5.2

milight 0.5.12015-03-19T01:48:50Windows:

py -m pip install milight==0.5.1

Unix/macOs:

pip install milight==0.5.1

milight 0.52015-03-18T23:16:54Windows:

py -m pip install milight==0.5

Unix/macOs:

pip install milight==0.5

milight 0.12015-03-18T07:22:17Windows:

py -m pip install milight==0.1

Unix/macOs:

pip install milight==0.1


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

Download the distribution file from milight-0.6.zip or the specific milight version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_milight_downloaded_file>

On Unix/macOs:

pip install <path_to_milight_downloaded_file>


List distribution:

- milight-0.5.win32.zip
- milight-0.5.zip
- milight-0.5.1.win32.zip
- milight-0.5.1.zip
- milight-0.5.2.win32.zip
- milight-0.5.2.zip
- milight-0.6.win32.zip
- milight-0.6.zip


Project link:

- Homepage