安装

要安装 pyhutool,请通过运行从 PyPI 安装 pyhutool 包,pip install pyhutool (Windows) or pip3 install pyhutool (macOS和Linux)

特定的操作系统的说明

Windows

在 Windows 上,您可以使用 py.exe 程序运行最新版本的 Python:

py -m pip install pyhutool

如果您安装了多个版本的 Python,您可以选择哪个版本运行,例如,运行:

py -3.8 -m pip install pyhutool

(这与运行 pip install pyhutool 相同。)

macOS

在 macOS 和 Linux 上,您需要运行 python3:

python3 -m pip install pyhutool

If you are running El Capitan and have problems installing pyhutool try:

MACOSX_DEPLOYMENT_TARGET=10.11 pip install pyhutool

Linux

在 macOS 和 Linux 上,您需要运行 python3:

python3 -m pip install pyhutool

在 Linux 上,您还需要安装 scrot 应用程序,如果您还需要安装 Tkinter:

sudo apt-get install scrot

sudo apt-get install python3-tk

sudo apt-get install python3-dev