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

How to install switchbot-mqtt via python pip




switchbot-mqtt - MQTT client controlling SwitchBot button & curtain automators, compatible with home-assistant.io's MQTT Switch & Cover platform, it belongs to Classifiers:

- Development Status :: 3 - Alpha
- Intended Audience :: End Users/Desktop
- Intended Audience :: System Administrators
- License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
- Operating System :: POSIX
- Operating System :: POSIX :: Linux
- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.7
- Programming Language :: Python :: 3.8
- Programming Language :: Python :: 3.9
- Programming Language :: Python :: 3.10
- Topic :: Home Automation

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



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_switchbot-mqtt_env

- Active the virtual environment

test_switchbot-mqtt_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_switchbot-mqtt_env

- Active the virtual environment

source test_switchbot-mqtt_env/bin/active


Step 2: OK, now, let flow below content to start the installation switchbot-mqtt

To install switchbot-mqtt on Windows(CMD):

py -m pip install switchbot-mqtt

To install switchbot-mqtt on Unix/macOs:

pip install switchbot-mqtt


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

Example:

pip install switchbot-mqtt==0.1.0


Please see the version list below table:

VersionReleased dateCommand
switchbot-mqtt 3.2.12022-07-09T08:38:04Windows:

py -m pip install switchbot-mqtt==3.2.1

Unix/macOs:

pip install switchbot-mqtt==3.2.1

switchbot-mqtt 3.2.02022-04-18T13:07:38Windows:

py -m pip install switchbot-mqtt==3.2.0

Unix/macOs:

pip install switchbot-mqtt==3.2.0

switchbot-mqtt 3.1.02022-04-02T13:57:28Windows:

py -m pip install switchbot-mqtt==3.1.0

Unix/macOs:

pip install switchbot-mqtt==3.1.0

switchbot-mqtt 3.0.02022-02-05T20:15:38Windows:

py -m pip install switchbot-mqtt==3.0.0

Unix/macOs:

pip install switchbot-mqtt==3.0.0

switchbot-mqtt 2.2.02021-10-23T16:33:06Windows:

py -m pip install switchbot-mqtt==2.2.0

Unix/macOs:

pip install switchbot-mqtt==2.2.0

switchbot-mqtt 2.1.02021-10-19T18:19:08Windows:

py -m pip install switchbot-mqtt==2.1.0

Unix/macOs:

pip install switchbot-mqtt==2.1.0

switchbot-mqtt 2.0.02021-10-19T18:20:07Windows:

py -m pip install switchbot-mqtt==2.0.0

Unix/macOs:

pip install switchbot-mqtt==2.0.0

switchbot-mqtt 1.1.02021-10-06T06:11:35Windows:

py -m pip install switchbot-mqtt==1.1.0

Unix/macOs:

pip install switchbot-mqtt==1.1.0

switchbot-mqtt 1.0.02021-07-25T05:38:55Windows:

py -m pip install switchbot-mqtt==1.0.0

Unix/macOs:

pip install switchbot-mqtt==1.0.0

switchbot-mqtt 0.7.02021-07-09T12:30:06Windows:

py -m pip install switchbot-mqtt==0.7.0

Unix/macOs:

pip install switchbot-mqtt==0.7.0

switchbot-mqtt 0.6.02020-12-19T16:34:07Windows:

py -m pip install switchbot-mqtt==0.6.0

Unix/macOs:

pip install switchbot-mqtt==0.6.0

switchbot-mqtt 0.5.02020-11-22T21:39:02Windows:

py -m pip install switchbot-mqtt==0.5.0

Unix/macOs:

pip install switchbot-mqtt==0.5.0

switchbot-mqtt 0.4.12020-06-18T12:42:42Windows:

py -m pip install switchbot-mqtt==0.4.1

Unix/macOs:

pip install switchbot-mqtt==0.4.1

switchbot-mqtt 0.4.02020-06-14T10:01:51Windows:

py -m pip install switchbot-mqtt==0.4.0

Unix/macOs:

pip install switchbot-mqtt==0.4.0

switchbot-mqtt 0.3.02020-05-08T21:23:29Windows:

py -m pip install switchbot-mqtt==0.3.0

Unix/macOs:

pip install switchbot-mqtt==0.3.0

switchbot-mqtt 0.2.02020-05-08T12:42:00Windows:

py -m pip install switchbot-mqtt==0.2.0

Unix/macOs:

pip install switchbot-mqtt==0.2.0

switchbot-mqtt 0.1.02020-05-08T07:21:40Windows:

py -m pip install switchbot-mqtt==0.1.0

Unix/macOs:

pip install switchbot-mqtt==0.1.0


Step 4: Otherwise, you can install switchbot-mqtt from local archives:

Download the distribution file from switchbot-mqtt-3.2.1.tar.gz or the specific switchbot-mqtt version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_switchbot-mqtt_downloaded_file>

On Unix/macOs:

pip install <path_to_switchbot-mqtt_downloaded_file>


List distribution:


Project link:

- Homepage
- Changelog