# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: # b785ccb154ea7c5e4722f287fb17d327_f3b4082, 2025 # python-doc bot, 2026 # Inada Naoki , 2026 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.15\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-10-25 17:19+0000\n" "PO-Revision-Date: 2025-09-16 00:02+0000\n" "Last-Translator: Inada Naoki , 2026\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../using/mac.rst:7 msgid "Using Python on macOS" msgstr "macOS で Python を使う" msgid "" "This document aims to give an overview of macOS-specific behavior you should " "know about to get started with Python on Mac computers. Python on a Mac " "running macOS is very similar to Python on other Unix-derived platforms, but " "there are some differences in installation and some features." msgstr "" "このドキュメントでは、Mac コンピュータで Python を使い始める際に知っておくべ" "き、macOS 固有の挙動を概説します。\n" "macOS を実行する Mac 上の Python は、ほかの Unix 派生プラットフォーム上の " "Python と非常によく似ていますが、インストール方法や一部の機能には違いがありま" "す。" msgid "" "There are various ways to obtain and install Python for macOS. Pre-built " "versions of the most recent versions of Python are available from a number " "of distributors. Much of this document describes use of the Pythons provided " "by the CPython release team for download from the `python.org website " "`_. See :ref:`alternative_bundles` for " "some other options." msgstr "" "macOS 用の Python を入手してインストールする方法はいくつかあります。\n" "最近の Python のバージョンは、複数の配布元からビルド済みのものを入手できま" "す。\n" "このドキュメントの大部分では、CPython リリースチームが `python.org のウェブサ" "イト `_ でダウンロード用に提供している " "Python の使い方を説明します。\n" "ほかの選択肢については :ref:`alternative_bundles` を参照してください。" msgid "Using Python for macOS from ``python.org``" msgstr "``python.org`` の macOS 用 Python を使う" #: ../../using/mac.rst:28 msgid "Installation steps" msgstr "インストール手順" msgid "" "For `current Python versions `_ (other " "than those in ``security`` status), the release team produces a **Python for " "macOS** installer package for each new release. A list of available " "installers is provided on the `macOS downloads page `__. We recommend using the most recent supported Python " "version where possible. Current installers provide a `universal2 binary " "`_ build of Python which " "runs natively on all Macs (Apple Silicon and Intel) that are supported by a " "wide range of macOS versions, currently typically from at least **macOS " "10.15 Catalina** on." msgstr "" "リリースチームは、`現在の Python バージョン `_ (``security`` 状態のものを除く) のリリースごとに、**Python for " "macOS** インストーラパッケージを作成します。\n" "利用できるインストーラの一覧は `macOS のダウンロードページ `__ にあります。\n" "可能な限り、サポートされている最新の Python バージョンの使用を推奨します。\n" "現在のインストーラは、幅広い macOS バージョンに対応するすべての Mac (Apple " "Silicon と Intel) 上でネイティブに動作する、Python の `universal2 バイナリ " "`_ ビルドを提供します。\n" "対応する macOS は、現在では通常、少なくとも **macOS 10.15 Catalina** 以降で" "す。" msgid "" "The downloaded file is a standard macOS installer package file (``.pkg``). " "File integrity information (such as checksum, size, and Sigstore signature) " "for each file is included on the release download page. Installer packages " "and their contents are signed and notarized with ``Python Software " "Foundation`` Apple Developer ID certificates to meet `macOS Gatekeeper " "requirements `_." msgstr "" "ダウンロードされるファイルは、標準の macOS インストーラパッケージファイル " "(``.pkg``) です。\n" "各ファイルの整合性情報 (チェックサム、サイズ、Sigstore 署名など) は、リリース" "のダウンロードページに掲載されています。\n" "インストーラパッケージとその内容は、`macOS Gatekeeper の要件 `_ を満たすように、``Python Software " "Foundation`` の Apple Developer ID 証明書を使って署名と公証が行われています。" msgid "" "For a default installation, double-click on the downloaded installer package " "file. This should launch the standard macOS Installer app and display the " "first of several installer steps." msgstr "" "デフォルトのインストールを行うには、ダウンロードしたインストーラパッケージ" "ファイルをダブルクリックします。\n" "標準の macOS Installer アプリが起動し、いくつかあるインストール手順の最初の画" "面が表示されるはずです。" msgid "" "Clicking on the **Continue** button brings up the **Read Me** for this " "installer. Besides other important information, the **Read Me** documents " "which Python version is going to be installed and on what versions of macOS " "it is supported. You may need to scroll through to read the whole file. By " "default, this **Read Me** will also be installed in |" "applications_python_version_literal| and available to read anytime." msgstr "" "**Continue** ボタンをクリックすると、このインストーラの **Read Me** が表示さ" "れます。\n" "**Read Me** には、インストールする Python のバージョンと、そのバージョンがサ" "ポートする macOS のバージョンなど、重要な情報が記載されています。\n" "ファイル全体を読むには、スクロールが必要な場合があります。\n" "デフォルトでは、この **Read Me** も |applications_python_version_literal| に" "インストールされ、いつでも読めるようになります。" msgid "" "Clicking on **Continue** proceeds to display the license for Python and for " "other included software. You will then need to **Agree** to the license " "terms before proceeding to the next step. This license file will also be " "installed and available to be read later." msgstr "" "**Continue** をクリックすると、Python および同梱されるほかのソフトウェアのラ" "イセンスが表示されます。\n" "次の手順に進むには、ライセンス条項に **Agree** で同意する必要があります。\n" "このライセンスファイルもインストールされ、後で読むことができます。" msgid "" "After the license terms are accepted, the next step is the **Installation " "Type** display. For most uses, the standard set of installation operations " "is appropriate." msgstr "" "ライセンス条項に同意すると、次に **Installation Type** 画面が表示されます。\n" "ほとんどの用途では、標準のインストール内容が適切です。" msgid "" "By pressing the **Customize** button, you can choose to omit or select " "certain package components of the installer. Click on each package name to " "see a description of what it installs. For details of the optional free-" "threaded feature, which is installed by default, see :ref:`install-" "freethreaded-macos`." msgstr "" "**Customize** ボタンを押すと、インストーラの特定のパッケージ構成要素を選択し" "たり、選択を解除したりできます。\n" "パッケージ名をクリックすると、そのパッケージがインストールするものの説明が表" "示されます。\n" "デフォルトでインストールされるオプションのフリースレッド機能については、:ref:" "`install-freethreaded-macos` を参照してください。" msgid "" "In either case, clicking **Install** will begin the install process by " "asking permission to install new software. A macOS user name with " "``Administrator`` privilege is needed as the installed Python will be " "available to all users of the Mac." msgstr "" "どちらの場合も、**Install** をクリックすると、新しいソフトウェアをインストー" "ルするための許可を求めてインストール処理が始まります。\n" "インストールした Python はその Mac のすべてのユーザーが利用できるため、" "``Administrator`` 権限のある macOS ユーザー名が必要です。" msgid "When the installation is complete, the **Summary** window will appear." msgstr "インストールが完了すると、**Summary** ウィンドウが表示されます。" msgid "" "Double-click on the :command:`Install Certificates.command` icon or file in " "the |applications_python_version_literal| window to complete the " "installation." msgstr "" "|applications_python_version_literal| ウィンドウで :command:`Install " "Certificates.command` のアイコンまたはファイルをダブルクリックして、インス" "トールを完了します。" msgid "" "This will open a temporary :program:`Terminal` shell window that will use " "the new Python to download and install SSL root certificates for its use." msgstr "" "一時的な :program:`Terminal` シェルウィンドウが開き、新しい Python を使って、" "その Python 用の SSL ルート証明書をダウンロードしてインストールします。" msgid "" "If ``Successfully installed certifi`` and ``update complete`` appear in the " "terminal window, the installation is complete. Close this terminal window " "and the installer window." msgstr "" "ターミナルウィンドウに ``Successfully installed certifi`` と ``update " "complete`` が表示されれば、インストールは完了です。\n" "このターミナルウィンドウとインストーラウィンドウを閉じてください。" msgid "A default install will include:" msgstr "デフォルトのインストールには、次のものが含まれます:" msgid "" "A |python_version_literal| folder in your :file:`Applications` folder. In " "here you find :program:`IDLE`, the development environment that is a " "standard part of official Python distributions; and :program:`Python " "Launcher`, which handles double-clicking Python scripts from the macOS " "`Finder `_." msgstr "" ":file:`Applications` フォルダ内の |python_version_literal| フォルダ。\n" "このフォルダには、公式の Python 配布物に標準で含まれる開発環境 :program:" "`IDLE` と、macOS の `Finder `_ で " "Python スクリプトをダブルクリックしたときの処理を担う :program:`Python " "Launcher` があります。" #: ../../using/mac.rst:113 msgid "" "A framework :file:`/Library/Frameworks/Python.framework`, which includes the " "Python executable and libraries. The installer adds this location to your " "shell path. To uninstall Python, you can remove these three things. Symlinks " "to the Python executable are placed in :file:`/usr/local/bin/`." msgstr "" msgid "" "Recent versions of macOS include a :command:`python3` command in :file:`/usr/" "bin/python3` that links to a usually older and incomplete version of Python " "provided by and for use by the Apple development tools, :program:`Xcode` or " "the :program:`Command Line Tools for Xcode`. You should never modify or " "attempt to delete this installation, as it is Apple-controlled and is used " "by Apple-provided or third-party software. If you choose to install a newer " "Python version from ``python.org``, you will have two different but " "functional Python installations on your computer that can co-exist. The " "default installer options should ensure that its :command:`python3` will be " "used instead of the system :command:`python3`." msgstr "" "最近の macOS には、:file:`/usr/bin/python3` に :command:`python3` コマンドが" "含まれています。\n" "これは、Apple の開発ツールである :program:`Xcode` または :program:`Command " "Line Tools for Xcode` によって、それらのツールで使用するために提供される " "Python にリンクしており、通常は古く、不完全なバージョンです。\n" "この Python は Apple が管理し、Apple 製やサードパーティのソフトウェアが使用す" "るため、決して変更したり、削除しようとしたりしないでください。\n" "``python.org`` から新しいバージョンの Python をインストールすると、コンピュー" "タには異なる 2 つの Python 環境が存在することになりますが、両方とも動作し、共" "存できます。\n" "インストーラのデフォルトのオプションでは、システムの :command:`python3` に代" "わって、インストールした :command:`python3` が使用されるはずです。" #: ../../using/mac.rst:131 msgid "How to run a Python script" msgstr "Python スクリプトの実行方法" msgid "" "There are two ways to invoke the Python interpreter. If you are familiar " "with using a Unix shell in a terminal window, you can invoke |" "python_x_dot_y_literal| or ``python3`` optionally followed by one or more " "command line options (described in :ref:`using-on-general`). The Python " "tutorial also has a useful section on :ref:`using Python interactively from " "a shell `." msgstr "" "Python インタープリタを起動するには 2 つの方法があります。\n" "ターミナルウィンドウで Unix シェルを使い慣れている場合は、|" "python_x_dot_y_literal| または ``python3`` を実行できます。\n" "必要に応じて、1 つ以上のコマンドラインオプション (:ref:`using-on-general` で" "説明) をその後に指定できます。\n" "Python チュートリアルの :ref:`シェルから Python を対話的に使用する ` 節も参考になります。" msgid "" "You can also invoke the interpreter through an integrated development " "environment. :ref:`idle` is a basic editor and interpreter environment which " "is included with the standard distribution of Python. :program:`IDLE` " "includes a Help menu that allows you to access Python documentation. If you " "are completely new to Python, you can read the tutorial introduction in that " "document." msgstr "" "統合開発環境からインタープリタを起動することもできます。\n" ":ref:`idle` は、Python の標準配布物に含まれる基本的なエディタとインタープリタ" "の環境です。\n" ":program:`IDLE` の Help メニューから Python のドキュメントを参照できます。\n" "Python を初めて使う場合は、そのドキュメントにあるチュートリアルの導入部分を読" "むとよいでしょう。" msgid "" "There are many other editors and IDEs available, see :ref:`editors` for more " "information." msgstr "" "ほかにも多くのエディタや IDE を利用できます。\n" "詳細は :ref:`editors` を参照してください。" msgid "" "To run a Python script file from the terminal window, you can invoke the " "interpreter with the name of the script file:" msgstr "" "ターミナルウィンドウから Python スクリプトファイルを実行するには、スクリプト" "ファイル名を指定してインタープリタを起動します:" msgid "|python_x_dot_y_literal| ``myscript.py``" msgstr "|python_x_dot_y_literal| ``myscript.py``" msgid "To run your script from the Finder, you can either:" msgstr "Finder からスクリプトを実行するには、次のいずれかの方法を使います:" msgid "Drag it to :program:`Python Launcher`." msgstr "スクリプトを :program:`Python Launcher` にドラッグします。" msgid "" "Select :program:`Python Launcher` as the default application to open your " "script (or any ``.py`` script) through the Finder Info window and double-" "click it. :program:`Python Launcher` has various preferences to control how " "your script is launched. Option-dragging allows you to change these for one " "invocation, or use its ``Preferences`` menu to change things globally." msgstr "" "Finder の情報ウィンドウで、スクリプト (または任意の ``.py`` スクリプト) を開" "くデフォルトのアプリケーションとして :program:`Python Launcher` を選択し、ス" "クリプトをダブルクリックします。\n" ":program:`Python Launcher` には、スクリプトの起動方法を制御するさまざまな環境" "設定があります。\n" "Option キーを押しながらドラッグすると、今回の起動に限って設定を変更できま" "す。\n" "全体の設定を変更するには、``Preferences`` メニューを使います。" msgid "" "Be aware that running the script directly from the macOS Finder might " "produce different results than when running from a terminal window as the " "script will not be run in the usual shell environment including any setting " "of environment variables in shell profiles. And, as with any other script or " "program, be certain of what you are about to run." msgstr "" "macOS の Finder から直接スクリプトを実行すると、ターミナルウィンドウから実行" "した場合と結果が異なることがあります。\n" "シェルのプロファイルでの環境変数の設定など、通常のシェル環境でスクリプトが実" "行されるわけではないためです。\n" "また、ほかのスクリプトやプログラムを実行するときと同様に、何を実行しようとし" "ているかを確認してください。" msgid "Alternative distributions" msgstr "ほかの配布物" msgid "" "Besides the standard ``python.org`` for macOS installer, there are third-" "party distributions for macOS that may include additional functionality. " "Some popular distributions and their key features:" msgstr "" "macOS 用の標準の ``python.org`` インストーラに加えて、追加の機能を含む場合が" "あるサードパーティの macOS 用配布物もあります。\n" "よく使われる配布物とその主な特徴を紹介します:" #: ../../using/mac.rst:182 msgid "`ActivePython `_" msgstr "`ActivePython `_" msgid "Installer with multi-platform compatibility, documentation" msgstr "複数のプラットフォームに対応するインストーラ、ドキュメント" #: ../../using/mac.rst:185 msgid "`Anaconda `_" msgstr "`Anaconda `_" msgid "" "Popular scientific modules (such as numpy, scipy, and pandas) and the " "``conda`` package manager." msgstr "" "よく使われる科学計算モジュール (numpy、scipy、pandas など) と ``conda`` パッ" "ケージマネージャ。" msgid "`Homebrew `_" msgstr "`Homebrew `_" msgid "" "Package manager for macOS including multiple versions of Python and many " "third-party Python-based packages (including numpy, scipy, and pandas)." msgstr "" "複数バージョンの Python と、Python に基づく多くのサードパーティパッケージ " "(numpy、scipy、pandas など) を含む macOS 用パッケージマネージャ。" msgid "`MacPorts `_" msgstr "`MacPorts `_" msgid "" "Another package manager for macOS including multiple versions of Python and " "many third-party Python-based packages. May include pre-built versions of " "Python and many packages for older versions of macOS." msgstr "" "複数バージョンの Python と、Python に基づく多くのサードパーティパッケージを含" "む、もう一つの macOS 用パッケージマネージャ。\n" "古い macOS バージョン用にビルドされた Python や多くのパッケージを含む場合があ" "ります。" msgid "" "Note that distributions might not include the latest versions of Python or " "other libraries, and are not maintained or supported by the core Python team." msgstr "" "これらの配布物には最新バージョンの Python やほかのライブラリが含まれていない" "ことがあり、Python のコアチームによる保守やサポートも行われていない点に注意し" "てください。" msgid "Installing additional Python packages" msgstr "追加の Python パッケージのインストール" msgid "Refer to the `Python Packaging User Guide`_ for more information." msgstr "詳細は `Python Packaging User Guide`_ を参照してください。" msgid "GUI programming" msgstr "GUI プログラミング" #: ../../using/mac.rst:218 msgid "" "There are several options for building GUI applications on the Mac with " "Python." msgstr "" "Python で Mac 上の GUI アプリケーションをビルドする方法がいくつかあります。" msgid "" "The standard Python GUI toolkit is :mod:`tkinter`, based on the cross-" "platform Tk toolkit (https://www.tcl.tk). A macOS-native version of Tk is " "included with the installer." msgstr "" "Python の標準 GUI ツールキットは、複数のプラットフォームに対応する Tk ツール" "キット (https://www.tcl.tk) を基にした :mod:`tkinter` です。\n" "インストーラには、macOS でネイティブに動作するバージョンの Tk が含まれていま" "す。" msgid "" "*PyObjC* is a Python binding to Apple's Objective-C/Cocoa framework. " "Information on PyObjC is available from :pypi:`pyobjc`." msgstr "" "*PyObjC* は、Apple の Objective-C/Cocoa フレームワークの Python バインディン" "グです。\n" "PyObjC についての情報は :pypi:`pyobjc` を参照してください。" msgid "A number of alternative macOS GUI toolkits are available including:" msgstr "macOS 用の GUI ツールキットには、次のようなほかの選択肢もあります:" msgid "" "`PySide `_: Official Python bindings to the " "`Qt GUI toolkit `_." msgstr "" "`PySide `_: `Qt GUI ツールキット `_ の公式 Python バインディング。" msgid "" "`PyQt `_: Alternative Python " "bindings to Qt." msgstr "" "`PyQt `_: Qt 用の別の Python " "バインディング。" msgid "" "`Kivy `_: A cross-platform GUI toolkit that supports " "desktop and mobile platforms." msgstr "" "`Kivy `_: デスクトップとモバイルのプラットフォームに対応す" "る GUI ツールキット。" msgid "" "`Toga `_: Part of the `BeeWare Project `_; supports desktop, mobile, web and console apps." msgstr "" "`Toga `_: `BeeWare Project `_ の一部で、デスクトップ、モバイル、ウェブ、コンソールのアプリに対応しま" "す。" msgid "" "`wxPython `_: A cross-platform toolkit that supports " "desktop operating systems." msgstr "" "`wxPython `_: 複数のデスクトップ OS に対応するツール" "キット。" msgid "" "`Flet `_: A framework for building cross-platform " "desktop, mobile, and web applications in Python." msgstr "" "`Flet `_: Python でデスクトップ、モバイル、ウェブの複数の" "プラットフォームに対応するアプリケーションを作成するためのフレームワーク。" msgid "Advanced topics" msgstr "高度な話題" msgid "Installing free-threaded binaries" msgstr "フリースレッドバイナリのインストール" msgid "Free-threading support is now installed by default." msgstr "" "フリースレッドのサポートがデフォルトでインストールされるようになりました。" msgid "" "The ``python.org`` :ref:`Python for macOS ` installer package installs, by default, an additional build of " "Python |version| that supports :term:`free threading` (running with the :" "term:`global interpreter lock` disabled). Check the release page on ``python." "org`` for possible updated information." msgstr "" "``python.org`` の :ref:`Python for macOS ` " "インストーラパッケージは、デフォルトで :term:`フリースレッド ` (:term:`グローバルインタープリタロック ` を無効にした実行) をサポートする Python |version| の追加ビルドをインス" "トールします。\n" "更新情報があるかどうか、``python.org`` のリリースページを確認してください。" msgid "" "The free-threaded mode is working and continues to be improved, but there is " "some additional overhead in single-threaded workloads compared to the " "regular build. Additionally, third-party packages, in particular ones with " "an :term:`extension module`, may not be ready for use in a free-threaded " "build, and will re-enable the :term:`GIL`. As of Python 3.15, free-threading " "support is installed by default. It is packaged as a separate install " "option, which can be deselected by clicking the **Customize** button on the " "**Installation Type** step of the installer as described above." msgstr "" "フリースレッドモードは動作し、改良も続けられていますが、単一スレッドでの処理" "には通常のビルドと比べていくらか追加のオーバーヘッドがあります。\n" "また、サードパーティパッケージ、特に :term:`拡張モジュール ` を含むものは、フリースレッドビルドでの使用に対応しておらず、:term:" "`GIL` を再び有効にする場合があります。\n" "Python 3.15 以降、フリースレッドのサポートはデフォルトでインストールされま" "す。\n" "これは個別のインストールオプションとして提供されており、前述のように、インス" "トーラの **Installation Type** 手順で **Customize** ボタンをクリックすると選" "択を解除できます。" msgid "" "If the box next to the **Free-threaded Python** package name is checked (as " "it is by default), a separate :file:`PythonT.framework` will also be " "installed alongside the normal :file:`Python.framework` in :file:`/Library/" "Frameworks`. This configuration allows a free-threaded Python |version| " "build to co-exist on your system with a traditional (GIL only) Python |" "version| build with minimal risk while installing or testing. This " "installation layout may change in future releases." msgstr "" "**Free-threaded Python** パッケージ名の横にあるボックスにチェックが入っている" "場合 (デフォルトでは入っています)、:file:`/Library/Frameworks` 内で通常の :" "file:`Python.framework` と並んで、別の :file:`PythonT.framework` もインストー" "ルされます。\n" "この構成により、システム上でフリースレッドの Python |version| ビルドと従来の " "(GIL を使う方式のみの) Python |version| ビルドを共存させ、インストールやテス" "トの際のリスクを最小限に抑えられます。\n" "このインストールの配置は、将来のリリースで変更される可能性があります。" msgid "Known cautions and limitations:" msgstr "既知の注意点と制限:" msgid "" "The **UNIX command-line tools** package, which is selected by default, will " "install links in :file:`/usr/local/bin` for |python_x_dot_y_t_literal|, the " "free-threaded interpreter, and |python_x_dot_y_t_literal_config|, a " "configuration utility which may be useful for package builders. Since :file:" "`/usr/local/bin` is typically included in your shell ``PATH``, in most cases " "no changes to your ``PATH`` environment variable should be needed to use |" "python_x_dot_y_t_literal|." msgstr "" "デフォルトで選択されている **UNIX command-line tools** パッケージは、フリース" "レッドインタープリタである |python_x_dot_y_t_literal| と、パッケージのビルド" "時に役立つ場合がある設定用ユーティリティ |python_x_dot_y_t_literal_config| の" "リンクを :file:`/usr/local/bin` にインストールします。\n" "通常、:file:`/usr/local/bin` はシェルの ``PATH`` に含まれるため、ほとんどの場" "合、|python_x_dot_y_t_literal| を使うために ``PATH`` 環境変数を変更する必要は" "ないはずです。" msgid "" "For this release, the **Shell profile updater** package and the :file:" "`Update Shell Profile.command` in |applications_python_version_literal| do " "not support the free-threaded package." msgstr "" "このリリースでは、**Shell profile updater** パッケージと、|" "applications_python_version_literal| にある :file:`Update Shell Profile." "command` は、フリースレッドパッケージに対応していません。" msgid "" "The free-threaded build and the traditional build have separate search paths " "and separate :file:`site-packages` directories so, by default, if you need a " "package available in both builds, it may need to be installed in both. The " "free-threaded package will install a separate instance of :program:`pip` for " "use with |python_x_dot_y_t_literal|." msgstr "" "フリースレッドビルドと従来のビルドでは、検索パスと :file:`site-packages` ディ" "レクトリがそれぞれ別になっています。\n" "そのため、デフォルトでは、両方のビルドでパッケージを使いたい場合は、両方にイ" "ンストールする必要があるかもしれません。\n" "フリースレッドパッケージは、|python_x_dot_y_t_literal| 用に別の :program:" "`pip` をインストールします。" msgid "To install a package using :command:`pip` without a :command:`venv`:" msgstr "" ":command:`venv` を使わずに :command:`pip` でパッケージをインストールするに" "は、次のようにします:" msgid "python\\ |version|\\ t -m pip install " msgstr "python\\ |version|\\ t -m pip install " msgid "" "When working with multiple Python environments, it is usually safest and " "easiest to :ref:`create and use virtual environments `. This can " "avoid possible command name conflicts and confusion about which Python is in " "use:" msgstr "" "複数の Python 環境を使用する場合は、通常、:ref:`仮想環境を作成して使用する " "` のが最も安全で簡単です。\n" "これにより、コマンド名が衝突したり、どの Python を使用しているか分からなく" "なったりするのを避けられます:" msgid "python\\ |version|\\ t -m venv " msgstr "python\\ |version|\\ t -m venv " msgid "then :command:`activate`." msgstr "続いて :command:`activate` を実行します。" msgid "To run a free-threaded version of IDLE:" msgstr "フリースレッド版の IDLE を実行するには、次のようにします:" msgid "python\\ |version|\\ t -m idlelib" msgstr "python\\ |version|\\ t -m idlelib" msgid "" "The interpreters in both builds respond to the same :ref:`PYTHON environment " "variables ` which may have unexpected results, for " "example, if you have ``PYTHONPATH`` set in a shell profile. If necessary, " "there are :ref:`command line options ` like ``-" "E`` to ignore these environment variables." msgstr "" "どちらのビルドのインタープリタも同じ :ref:`PYTHON 環境変数 ` を参照するため、例えばシェルのプロファイルで ``PYTHONPATH`` を設定" "していると、予期しない結果になる場合があります。\n" "必要に応じて、``-E`` のような :ref:`コマンドラインオプション ` を使い、これらの環境変数を無視できます。" msgid "" "The free-threaded build links to the third-party shared libraries, such as " "``OpenSSL`` and ``Tk``, installed in the traditional framework. This means " "that both builds also share one set of trust certificates as installed by " "the :command:`Install Certificates.command` script, thus it only needs to be " "run once." msgstr "" "フリースレッドビルドは、従来のフレームワークにインストールされた ``OpenSSL`` " "や ``Tk`` などのサードパーティの共有ライブラリにリンクします。\n" "そのため、両方のビルドは :command:`Install Certificates.command` スクリプトで" "インストールした信頼証明書も共有するので、このスクリプトは一度実行するだけで" "済みます。" msgid "" "If you cannot depend on the link in ``/usr/local/bin`` pointing to the " "``python.org`` free-threaded |python_x_dot_y_t_literal| (for example, if you " "want to install your own version there or some other distribution does), you " "can explicitly set your shell ``PATH`` environment variable to include the " "``PythonT`` framework ``bin`` directory:" msgstr "" "``/usr/local/bin`` 内のリンクが ``python.org`` のフリースレッド版 |" "python_x_dot_y_t_literal| を指すとは限らない場合 (例えば、その場所に自分の" "バージョンをインストールしたい場合や、ほかの配布物がインストールする場合)、" "シェルの ``PATH`` 環境変数に ``PythonT`` フレームワークの ``bin`` ディレクト" "リを明示的に追加できます:" msgid "" "export PATH=\"/Library/Frameworks/PythonT.framework/Versions/\\ |version|\\ /" "bin\":\"$PATH\"" msgstr "" "export PATH=\"/Library/Frameworks/PythonT.framework/Versions/\\ |version|\\ /" "bin\":\"$PATH\"" msgid "" "The traditional framework installation by default does something similar, " "except for :file:`Python.framework`. Be aware that having both framework " "``bin`` directories in ``PATH`` can lead to confusion if there are duplicate " "names like |python_x_dot_y_literal| in both; which one is actually used " "depends on the order they appear in ``PATH``. The ``which python3.x`` or " "``which python3.xt`` commands can show which path is being used. Using " "virtual environments can help avoid such ambiguities. Another option might " "be to create a shell :command:`alias` to the desired interpreter, like:" msgstr "" "従来のフレームワークのインストールでも、対象が :file:`Python.framework` であ" "る以外は、デフォルトで同様の処理を行います。\n" "両方のフレームワークの ``bin`` ディレクトリを ``PATH`` に含めると、両方に |" "python_x_dot_y_literal| のような同名のコマンドがある場合に混乱を招くことがあ" "ります。\n" "実際にどちらが使われるかは、``PATH`` 内での順序によって決まります。\n" "``which python3.x`` または ``which python3.xt`` コマンドで、どのパスが使われ" "るか確認できます。\n" "仮想環境を使うと、このような曖昧さを避けるのに役立ちます。\n" "目的のインタープリタに対して、次のようにシェルの :command:`alias` を作成する" "方法も考えられます:" msgid "" "alias py\\ |version|\\ =\"/Library/Frameworks/Python.framework/Versions/\\ |" "version|\\ /bin/python\\ |version|\\ \"\n" "alias py\\ |version|\\ t=\"/Library/Frameworks/PythonT.framework/Versions/\\ " "|version|\\ /bin/python\\ |version|\\ t\"" msgstr "" "alias py\\ |version|\\ =\"/Library/Frameworks/Python.framework/Versions/\\ |" "version|\\ /bin/python\\ |version|\\ \"\n" "alias py\\ |version|\\ t=\"/Library/Frameworks/PythonT.framework/Versions/\\ " "|version|\\ /bin/python\\ |version|\\ t\"" msgid "Installing using the command line" msgstr "コマンドラインからのインストール" msgid "" "If you want to use automation to install the ``python.org`` installer " "package (rather than by using the familiar macOS :program:`Installer` GUI " "app), the macOS command line :command:`installer` utility lets you select " "non-default options, too. If you are not familiar with :command:`installer`, " "it can be somewhat cryptic (see :command:`man installer` for more " "information). As an example, the following shell snippet shows one way to do " "it, using the |x_dot_y_b2_literal| release and deselecting the free-threaded " "interpreter option:" msgstr "" "``python.org`` のインストーラパッケージを、使い慣れた macOS の :program:" "`Installer` GUI アプリではなく、自動化によってインストールしたい場合、macOS " "のコマンドラインの :command:`installer` ユーティリティでも、デフォルト以外の" "オプションを選択できます。\n" ":command:`installer` に慣れていないと、やや分かりにくいかもしれません (詳細" "は :command:`man installer` を参照)。\n" "例として、次のシェルスクリプトの断片は、|x_dot_y_b2_literal| リリースを使い、" "フリースレッドインタープリタのオプションを選択解除する方法を示します:" msgid "" "RELEASE=\"python-\\ |version|\\ .0b2-macos11.pkg\"\n" "\n" "# download installer pkg\n" "curl -O \\https://www.python.org/ftp/python/\\ |version|\\ .0/${RELEASE}\n" "\n" "# create installer choicechanges to customize the install:\n" "# disable the PythonTFramework-\\ |version|\\ package\n" "# while accepting the other defaults (install all other packages)\n" "cat > ./choicechanges.plist <\n" "\n" "\n" "\n" " \n" " attributeSetting\n" " 0\n" " choiceAttribute\n" " selected\n" " choiceIdentifier\n" " org.python.Python.PythonTFramework-\\ |version|\\ \n" " \n" "\n" "\n" "EOF\n" "\n" "sudo installer -pkg ./${RELEASE} -applyChoiceChangesXML ./choicechanges." "plist -target /" msgstr "" msgid "" "After a default install, you can test that both builds are available with " "something like:" msgstr "" "デフォルトのインストール後、例えば次のようにして、両方のビルドが利用できるこ" "とを確認できます:" #: ../../using/mac.rst:412 msgid "" "$ # test that the free-threaded interpreter was installed if the Unix " "Command Tools package was enabled\n" "$ /usr/local/bin/python\\ |version|\\ t -VV\n" "Python \\ |version|\\ .0b2 free-threading build (v\\ |version|" "\\ .0b2:3a83b172af, Jun 5 2024, 12:57:31) [Clang 15.0.0 " "(clang-1500.3.9.4)]\n" "$ # and the traditional interpreter\n" "$ /usr/local/bin/python\\ |version|\\ -VV\n" "Python \\ |version|\\ .0b2 (v\\ |version|\\ .0b2:3a83b172af, Jun 5 2024, " "12:50:24) [Clang 15.0.0 (clang-1500.3.9.4)]\n" "$ # test that they are also available without the prefix if /usr/local/bin " "is on $PATH\n" "$ python\\ |version|\\ t -VV\n" "Python \\ |version|\\ .0b2 free-threading build (v\\ |version|" "\\ .0b2:3a83b172af, Jun 5 2024, 12:57:31) [Clang 15.0.0 " "(clang-1500.3.9.4)]\n" "$ python\\ |version|\\ -VV\n" "Python \\ |version|\\ .0b2 (v\\ |version|\\ .0b2:3a83b172af, Jun 5 2024, " "12:50:24) [Clang 15.0.0 (clang-1500.3.9.4)]" msgstr "" msgid "" "Current ``python.org`` installers only install to fixed locations like :file:" "`/Library/Frameworks/`, :file:`/Applications`, and :file:`/usr/local/bin`. " "You cannot use the :command:`installer` ``-domain`` option to install to " "other locations." msgstr "" "現在の ``python.org`` インストーラは、:file:`/Library/Frameworks/`、:file:`/" "Applications`、:file:`/usr/local/bin` などの決められた場所にのみインストール" "します。\n" ":command:`installer` の ``-domain`` オプションを使って、ほかの場所にインス" "トールすることはできません。" msgid "Distributing Python applications" msgstr "Python アプリケーションの配布" #: ../../using/mac.rst:436 msgid "" "A range of tools exist for converting your Python code into a standalone " "distributable application:" msgstr "" "Python コードをスタンドアローンな配布アプリケーションに変換するツールには様々" "なものがあります:" msgid "" ":pypi:`py2app`: Supports creating macOS ``.app`` bundles from a Python " "project." msgstr "" ":pypi:`py2app`: Python プロジェクトから macOS の ``.app`` バンドルを作成でき" "ます。" msgid "" "`Briefcase `_: Part of the `BeeWare " "Project `_; a cross-platform packaging tool that " "supports creation of ``.app`` bundles on macOS, as well as managing signing " "and notarization." msgstr "" "`Briefcase `_: `BeeWare Project `_ の一部で、複数のプラットフォームに対応するパッケージングツール" "です。\n" "macOS 上での ``.app`` バンドルの作成や、署名と公証の管理に対応します。" msgid "" "`PyInstaller `_: A cross-platform packaging tool " "that creates a single file or folder as a distributable artifact." msgstr "" "`PyInstaller `_: 複数のプラットフォームに対応する" "パッケージングツールで、配布物として単一のファイルまたはフォルダを作成しま" "す。" msgid "App Store compliance" msgstr "App Store の要件への適合" msgid "" "Apps submitted for distribution through the macOS App Store must pass " "Apple's app review process. This process includes a set of automated " "validation rules that inspect the submitted application bundle for " "problematic code." msgstr "" "macOS App Store を通じて配布するために提出するアプリは、Apple のアプリ審査に" "合格する必要があります。\n" "この審査には、提出されたアプリケーションバンドル内に問題のあるコードがないか" "を調べる、一連の自動検証ルールが含まれています。" msgid "" "The Python standard library contains some code that is known to violate " "these automated rules. While these violations appear to be false positives, " "Apple's review rules cannot be challenged. Therefore, it is necessary to " "modify the Python standard library for an app to pass App Store review." msgstr "" "Python 標準ライブラリには、これらの自動ルールに違反することが分かっているコー" "ドが含まれています。\n" "これらの違反は誤検出と思われますが、Apple の審査ルールに異議を唱えることはで" "きません。\n" "そのため、アプリが App Store の審査に合格するには、Python 標準ライブラリを変" "更する必要があります。" msgid "" "The Python source tree contains :source:`a patch file ` that will remove all code that is known to cause " "issues with the App Store review process. This patch is applied " "automatically when CPython is configured with the :option:`--with-app-store-" "compliance` option." msgstr "" "Python ソースツリーには、App Store の審査で問題を引き起こすことが分かっている" "コードをすべて削除する :source:`パッチファイル ` が含まれています。\n" "このパッチは、CPython の configure に :option:`--with-app-store-compliance` " "オプションを指定した場合に自動で適用されます。" msgid "" "This patch is not normally required to use CPython on a Mac; nor is it " "required if you are distributing an app *outside* the macOS App Store. It is " "*only* required if you are using the macOS App Store as a distribution " "channel." msgstr "" "Mac 上で CPython を使用するために、通常このパッチは必要ありません。\n" "macOS App Store の *外* でアプリを配布する場合にも必要ありません。\n" "このパッチが必要になるのは、macOS App Store を配布経路として使用する場合 *だ" "け* です。" #: ../../using/mac.rst:473 msgid "Other resources" msgstr "その他のリソース" msgid "" "The `python.org Help page `_ has links " "to many useful resources. The `Pythonmac-SIG mailing list `_ is another support " "resource specifically for Python users and developers on the Mac." msgstr "" "`python.org のヘルプページ `_ には、多く" "の役立つリソースへのリンクがあります。\n" "`Pythonmac-SIG メーリングリスト `_ も、Mac 上で Python を使うユーザーや開発者に特化し" "たサポートリソースです。"