Skip to content

Installationインストール


GitHub ActionsGitHub Actions

- name: Install Hatch
  uses: pypa/hatch@install

Refer to the official action for more information.公式アクションを参照して、詳細情報を確認してください。

Installersインストーラー

  1. In your browser, download the .pkg file: hatch-universal.pkgブラウザで、.pkgファイルをダウンロードします: hatch-universal.pkg
  2. Run your downloaded file and follow the on-screen instructions.ダウンロードしたファイルを実行し、画面の指示に従ってください。
  3. Restart your terminal.ターミナルを再起動します。
  4. To verify that the shell can find and run the hatch command in your PATH, use the following command.シェルがPATH内でhatchコマンドを見つけて実行できることを確認するために、次のコマンドを使用します。

    $ hatch --version
    1.16.1
    
  1. Download the file using the curl command. The -o option specifies the file name that the downloaded package is written to. In this example, the file is written to hatch-universal.pkg in the current directory.curlコマンドを使用してファイルをダウンロードします。-oオプションは、ダウンロードしたパッケージが書き込まれるファイル名を指定します。この例では、ファイルは現在のディレクトリにhatch-universal.pkgとして書き込まれます。

    curl -Lo hatch-universal.pkg https://github.com/pypa/hatch/releases/latest/download/hatch-universal.pkg
    
  2. Run the standard macOS installer program, specifying the downloaded .pkg file as the source. Use the -pkg parameter to specify the name of the package to install, and the -target / parameter for the drive in which to install the package. The files are installed to /usr/local/hatch, and an entry is created at /etc/paths.d/hatch that instructs shells to add the /usr/local/hatch directory to. You must include sudo on the command to grant write permissions to those folders.標準のmacOS installerプログラムを実行し、ダウンロードした.pkgファイルをソースとして指定します。-pkgパラメータを使用してインストールするパッケージの名前を指定し、-target /パラメータを使用してパッケージをインストールするドライブを指定します。ファイルは/usr/local/hatchにインストールされ、シェルに/usr/local/hatchディレクトリを追加するよう指示するエントリが/etc/paths.d/hatchに作成されます。これらのフォルダへの書き込み権限を付与するために、コマンドにsudoを含める必要があります。

    sudo installer -pkg ./hatch-universal.pkg -target /
    
  3. Restart your terminal.ターミナルを再起動します。

  4. To verify that the shell can find and run the hatch command in your PATH, use the following command.シェルがPATH内でhatchコマンドを見つけて実行できることを確認するには、次のコマンドを使用します。

    $ hatch --version
    1.16.1
    
  1. In your browser, download one the .msi files:
  2. Run your downloaded file and follow the on-screen instructions.ダウンロードしたファイルを実行し、画面の指示に従います。
  3. Restart your terminal.ターミナルを再起動します。
  4. To verify that the shell can find and run the hatch command in your PATH, use the following command.シェルがPATH内でhatchコマンドを見つけて実行できることを確認するには、次のコマンドを使用します。

    $ hatch --version
    1.16.1
    
  1. Download and run the installer using the standard Windows msiexec program, specifying one of the .msi files as the source. Use the /passive and /i parameters to request an unattended, normal installation.標準のWindows msiexecプログラムを使用してインストーラーをダウンロードして実行し、.msiファイルの1つをソースとして指定します。/passiveおよび/iパラメータを使用して、無人で通常のインストールを要求します。

    msiexec /passive /i https://github.com/pypa/hatch/releases/latest/download/hatch-x64.msi
    
    msiexec /passive /i https://github.com/pypa/hatch/releases/latest/download/hatch-x86.msi
    
  2. Restart your terminal.ターミナルを再起動します。

  3. To verify that the shell can find and run the hatch command in your PATH, use the following command.シェルがPATH内でhatchコマンドを見つけて実行できることを確認するには、次のコマンドを使用します。

    $ hatch --version
    1.16.1
    

Standalone binariesスタンドアロンバイナリ

After downloading the archive corresponding to your platform and architecture, extract the binary to a directory that is on your PATH and rename to hatch.プラットフォームとアーキテクチャに対応するアーカイブをダウンロードした後、バイナリをPATHにあるディレクトリに抽出し、hatchに名前を変更します。

pippip

Hatch is available on PyPI and can be installed with pip.HatchはPyPIで利用可能で、pipを使用してインストールできます。

pip install hatch

Warning警告

This method modifies the Python environment in which you choose to install. Consider instead using pipx to avoid dependency conflicts.この方法は、インストールするPython環境を変更します。依存関係の競合を避けるために、代わりにpipxの使用を検討してください。

pipxpipx

pipx allows for the global installation of Python applications in isolated environments.pipxは、隔離された環境でPythonアプリケーションをグローバルにインストールすることを可能にします。

pipx install hatch

HomebrewHomebrew

See the formula for more details.詳細については、formulaを参照してください。

brew install hatch

CondaConda

See the feedstock for more details.詳細については、feedstockを参照してください。

conda install -c conda-forge hatch

or with mamba:またはmambaを使用して:

mamba install hatch

Warning警告

This method modifies the Conda environment in which you choose to install. Consider instead using pipx or condax to avoid dependency conflicts.このメソッドは、インストールする環境の Conda を変更します。依存関係の競合を避けるために、代わりに pipx または condax の使用を検討してください。

MacPortsMacPorts

See the port for more details.詳細については、ポートを参照してください。

sudo port install hatch

FedoraFedora

The minimum supported version is 37, currently in development as Rawhide.サポートされている最小バージョンは 37 で、現在 Rawhide として開発中です。

sudo dnf install hatch

Void LinuxVoid Linux

xbps-install hatch

Build system availabilityビルドシステムの可用性

Hatchling is Hatch's build backend which you will never need to install manually. See its changelog for version information.Hatchling は Hatch の ビルドバックエンド であり、手動でインストールする必要はありません。バージョン情報については、その 変更履歴 を参照してください。

Packaging status