安装
本页将引导您如何在 Python 运行时环境中安装 Stopwatch Kit。
我们将 Stopwatch-Kit for Python 的完整源代码托管在 Github 的公开存储库中,您可以前往 https://github.com/nobody-night/stopwatch-python 获取。
下文安装示例 Shell 命令中假定 pip 和 python 指示 pip3 和 python3。
通常情况下,这是您的首选安装方式。目前我们在 Python Package Index 和 SmallSO Libget 上发布并托管 Stopwatch Kit 的打包 Wheel 文件。
- Python Package Index
Tips: 很抱歉,目前由于包索引名称与一个无效的包冲突,暂时不支持通过此方式安装。目前我们正在积极与无效包的所有者取得联系并获得转让。
pip install stopwatch
- SmallSO Libget
pip install https://libget.com/pypi/smallso/stopwatch-release-py3-none-any.whl
若不能正常访问 PyPI 或延时过高,应选择选择通过 SmallSO Libget 拉取并安装。
- 安装依赖 Python 代码包
pip install setuptools
pip install wheel
- 从 Github 克隆 Python SDK 的源代码
git clone https://github.com/nobody-night/stopwatch-python.git
- 打包 Stopwatch Kit
cd stopwatch-python
python setup.py sdist bdist_wheel
- 安装 Stopwatch Kit
pip install dist/stopwatch-release-py3-none-any.whl
下文安装示例 Shell 命令中假定 pip 和 python 指示 pip3 和 python3。
pip uninstall stopwatch
Last modified 3yr ago