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

How to install xdice via python pip




xdice - The swiss knife for Dice roll : Command line, API (documented!), advanced dice notation parser, compilable patterns...etc., it belongs to Classifiers:

- Intended Audience :: Other Audience
- License :: OSI Approved :: GNU General Public License (GPL)
- Topic :: Games/Entertainment
- Topic :: Games/Entertainment :: Board Games
- Topic :: Games/Entertainment :: Multi-User Dungeons (MUD)
- Topic :: Games/Entertainment :: Role-Playing
- Topic :: Games/Entertainment :: Turn Based Strategy

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



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_xdice_env

- Active the virtual environment

test_xdice_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_xdice_env

- Active the virtual environment

source test_xdice_env/bin/active


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

To install xdice on Windows(CMD):

py -m pip install xdice

To install xdice on Unix/macOs:

pip install xdice


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

Example:

pip install xdice==1.0.0


Please see the version list below table:

VersionReleased dateCommand
xdice 1.2.12020-01-16T15:17:35Windows:

py -m pip install xdice==1.2.1

Unix/macOs:

pip install xdice==1.2.1

xdice 1.1.42017-09-28T19:54:33Windows:

py -m pip install xdice==1.1.4

Unix/macOs:

pip install xdice==1.1.4

xdice 1.1.32017-09-23T21:26:00Windows:

py -m pip install xdice==1.1.3

Unix/macOs:

pip install xdice==1.1.3

xdice 1.1.22017-09-23T17:44:26Windows:

py -m pip install xdice==1.1.2

Unix/macOs:

pip install xdice==1.1.2

xdice 1.1.02017-09-23T12:59:14Windows:

py -m pip install xdice==1.1.0

Unix/macOs:

pip install xdice==1.1.0

xdice 1.0.12017-09-21T21:29:56Windows:

py -m pip install xdice==1.0.1

Unix/macOs:

pip install xdice==1.0.1

xdice 1.0.02017-09-21T19:05:37Windows:

py -m pip install xdice==1.0.0

Unix/macOs:

pip install xdice==1.0.0


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

Download the distribution file from xdice-1.2.1-py3-none-any.whl or the specific xdice version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_xdice_downloaded_file>

On Unix/macOs:

pip install <path_to_xdice_downloaded_file>


List distribution:


Project link:

- Homepage