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

How to install toolforge via python pip




toolforge - Small library for common tasks on Wikimedia Toolforge, it belongs to Classifiers:

- License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)

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



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_toolforge_env

- Active the virtual environment

test_toolforge_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_toolforge_env

- Active the virtual environment

source test_toolforge_env/bin/active


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

To install toolforge on Windows(CMD):

py -m pip install toolforge

To install toolforge on Unix/macOs:

pip install toolforge


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

Example:

pip install toolforge==4.0.0


Please see the version list below table:

VersionReleased dateCommand
toolforge 5.0.02021-08-03T04:25:25Windows:

py -m pip install toolforge==5.0.0

Unix/macOs:

pip install toolforge==5.0.0

toolforge 4.4.02021-01-11T23:05:49Windows:

py -m pip install toolforge==4.4.0

Unix/macOs:

pip install toolforge==4.4.0

toolforge 4.3.22020-08-28T09:22:46Windows:

py -m pip install toolforge==4.3.2

Unix/macOs:

pip install toolforge==4.3.2

toolforge 4.3.12020-02-02T10:32:23Windows:

py -m pip install toolforge==4.3.1

Unix/macOs:

pip install toolforge==4.3.1

toolforge 4.3.02019-07-24T04:06:57Windows:

py -m pip install toolforge==4.3.0

Unix/macOs:

pip install toolforge==4.3.0

toolforge 4.2.02019-01-09T23:08:54Windows:

py -m pip install toolforge==4.2.0

Unix/macOs:

pip install toolforge==4.2.0

toolforge 4.1.02017-10-28T03:25:59Windows:

py -m pip install toolforge==4.1.0

Unix/macOs:

pip install toolforge==4.1.0

toolforge 4.0.02017-08-26T07:36:47Windows:

py -m pip install toolforge==4.0.0

Unix/macOs:

pip install toolforge==4.0.0


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_toolforge_downloaded_file>

On Unix/macOs:

pip install <path_to_toolforge_downloaded_file>


List distribution:


Project link:

- Homepage