---
description: >-
  This page will walk you through how to install the Stopwatch Kit in the Python
  runtime environment.
---

# Installation

## Source code

We host the full source code for Stopwatch-Kit for Python in Github's public repository, which you can get at [https://github.com/nobody-night/stopwatch-python](https://github.com/nobody-night/stopwatch-python).

## Installation

{% hint style="warning" %}
The following example installs the shell command assuming pip and python indicate pip3 and python3.
{% endhint %}

### Install from PyPI

Usually, this is your preferred installation method. We currently publish and host the packaged Wheel files for the Stopwatch Kit on the Python Package Index and SmallSO Libget.

* Python Package Index

> **Tips**: Sorry, the installation index is not supported at this time because the package index name conflicts with an invalid package. We are currently actively contacting the owner of the invalid package and getting the transfer.

```bash
pip install stopwatch
```

* SmallSO Libget

```bash
pip install https://libget.com/pypi/smallso/stopwatch-release-py3-none-any.whl
```

{% hint style="info" %}
If PyPI cannot be accessed normally or the delay is too high, you should choose to pull and install it via SmallSO Libget.
{% endhint %}

### Install from source code

* Installation dependent Python code package

```bash
pip install setuptools
pip install wheel
```

* Clone source code from Github

```bash
git clone https://github.com/nobody-night/stopwatch-python.git
```

* Packing Stopwatch Kit

```bash
cd stopwatch-python
python setup.py sdist bdist_wheel
```

* Install Stopwatch Kit

```bash
pip install dist/stopwatch-release-py3-none-any.whl
```

## Uninstall

{% hint style="warning" %}
The following example installs the shell command assuming pip and python indicate pip3 and python3.
{% endhint %}

```bash
pip uninstall stopwatch
```
