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

How to install dmoj via python pip




dmoj - The judge component of the DMOJ: Modern Online Judge platform, it belongs to Classifiers:

- License :: OSI Approved :: GNU Affero General Public License v3
- License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
- Operating System :: POSIX :: BSD
- Operating System :: POSIX :: BSD :: FreeBSD
- Operating System :: POSIX :: Linux
- Topic :: Education

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



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_dmoj_env

- Active the virtual environment

test_dmoj_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_dmoj_env

- Active the virtual environment

source test_dmoj_env/bin/active


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

To install dmoj on Windows(CMD):

py -m pip install dmoj

To install dmoj on Unix/macOs:

pip install dmoj


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

Example:

pip install dmoj==1.0.0


Please see the version list below table:

VersionReleased dateCommand
dmoj 3.0.22021-09-12T00:14:36Windows:

py -m pip install dmoj==3.0.2

Unix/macOs:

pip install dmoj==3.0.2

dmoj 3.0.12021-02-28T01:28:00Windows:

py -m pip install dmoj==3.0.1

Unix/macOs:

pip install dmoj==3.0.1

dmoj 3.0.02021-02-28T01:15:57Windows:

py -m pip install dmoj==3.0.0

Unix/macOs:

pip install dmoj==3.0.0

dmoj 2.1.02020-05-11T20:12:51Windows:

py -m pip install dmoj==2.1.0

Unix/macOs:

pip install dmoj==2.1.0

dmoj 2.0.02019-10-29T05:27:42Windows:

py -m pip install dmoj==2.0.0

Unix/macOs:

pip install dmoj==2.0.0

dmoj 1.4.02019-09-15T20:03:08Windows:

py -m pip install dmoj==1.4.0

Unix/macOs:

pip install dmoj==1.4.0

dmoj 1.3.02018-11-21T03:32:24Windows:

py -m pip install dmoj==1.3.0

Unix/macOs:

pip install dmoj==1.3.0

dmoj 1.2.02018-04-22T02:04:55Windows:

py -m pip install dmoj==1.2.0

Unix/macOs:

pip install dmoj==1.2.0

dmoj 1.1.02017-12-09T22:07:57Windows:

py -m pip install dmoj==1.1.0

Unix/macOs:

pip install dmoj==1.1.0

dmoj 1.0.52017-12-03T00:51:49Windows:

py -m pip install dmoj==1.0.5

Unix/macOs:

pip install dmoj==1.0.5

dmoj 1.0.42017-12-02T09:37:02Windows:

py -m pip install dmoj==1.0.4

Unix/macOs:

pip install dmoj==1.0.4

dmoj 1.0.32017-12-02T08:05:55Windows:

py -m pip install dmoj==1.0.3

Unix/macOs:

pip install dmoj==1.0.3

dmoj 1.0.02017-12-02T05:49:22Windows:

py -m pip install dmoj==1.0.0

Unix/macOs:

pip install dmoj==1.0.0


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_dmoj_downloaded_file>

On Unix/macOs:

pip install <path_to_dmoj_downloaded_file>


List distribution:

- dmoj-1.0.0.tar.gz
- dmoj-1.0.3.tar.gz
- dmoj-1.0.4.tar.gz
- dmoj-1.0.5.tar.gz
- dmoj-1.1.0.tar.gz
- dmoj-1.2.0.tar.gz
- dmoj-1.3.0.tar.gz
- dmoj-1.4.0.tar.gz
- dmoj-2.0.0.tar.gz
- dmoj-2.1.0.tar.gz
- dmoj-3.0.0.tar.gz
- dmoj-3.0.1.tar.gz
- dmoj-3.0.2.tar.gz


Project link:

- Homepage