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

How to install mcrcon via python pip




mcrcon - A client for handling Remote Commands (RCON) to a Minecraft server., it belongs to Classifiers:

- Development Status :: 5 - Production/Stable
- Intended Audience :: System Administrators
- License :: OSI Approved :: MIT License
- Programming Language :: Python
- Programming Language :: Python :: 3
- Programming Language :: Python :: 3.7

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



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_mcrcon_env

- Active the virtual environment

test_mcrcon_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_mcrcon_env

- Active the virtual environment

source test_mcrcon_env/bin/active


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

To install mcrcon on Windows(CMD):

py -m pip install mcrcon

To install mcrcon on Unix/macOs:

pip install mcrcon


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

Example:

pip install mcrcon==0.5.1


Please see the version list below table:

VersionReleased dateCommand
mcrcon 0.7.02021-07-30T06:59:32Windows:

py -m pip install mcrcon==0.7.0

Unix/macOs:

pip install mcrcon==0.7.0

mcrcon 0.6.02020-04-08T02:40:54Windows:

py -m pip install mcrcon==0.6.0

Unix/macOs:

pip install mcrcon==0.6.0

mcrcon 0.5.22018-04-15T09:10:35Windows:

py -m pip install mcrcon==0.5.2

Unix/macOs:

pip install mcrcon==0.5.2

mcrcon 0.5.12018-04-15T08:42:40Windows:

py -m pip install mcrcon==0.5.1

Unix/macOs:

pip install mcrcon==0.5.1


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_mcrcon_downloaded_file>

On Unix/macOs:

pip install <path_to_mcrcon_downloaded_file>


List distribution:

- mcrcon-0.5.1.tar.gz
- mcrcon-0.5.2.tar.gz
- mcrcon-0.6.0.tar.gz
- mcrcon-0.7.0.tar.gz


Project link:

- Homepage