# Python

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/ja-jp/help/clion/llms.txt).

CLion で Python スクリプトを開発するには：

* [Python(英語)](http://www.python.org/) をダウンロードしてインストールします。

* バンドルされている Python コミュニティエディションプラグイン が [有効](managing-plugins.html#open-plugin-settings)になっていることを確認してください。

* 少なくとも 1 つの [Python インタープリター](configuring-available-python-interpreters.html)を構成します。

Windows ユーザーの場合、 [Windows 用 Python(英語)](https://www.python.org/downloads/windows/) をインストールすることをお勧めします。

> **Note:**
> CLion はまだ WSL で Python インタープリターをサポートしていません。 関連する YouTrack の問題（ [CPP-13470(英語)](https://youtrack.jetbrains.com/issue/CPP-13470/Combine-CLion-and-PyCharm-Professional)）に賛成票を投じたり、購読したりしてください。

## サポートされるバージョン

* Python 2 : バージョン 2.7

* Python 3 : バージョン 3.9 からバージョン 3.15 まで

> **Note:**
> CLion でのすべての Python の機能は Python 3.9 以降で完全にサポートされています。 古いバージョンの場合、一部の機能は個々のツールが提供するサポートによって制限される場合があります。
>
>
>
> 例えば、新しい環境の作成には Python 3.8 以上が必要です。 Python 3.7 以前をベースとした新しいプロジェクトの場合は、ターミナルで新しい環境を作成してから、 [CLion で選択してください](configuring-available-python-interpreters.html#existing-virtual-environment)。

次の機能が Python 3.15 サポートの一環として利用可能です：

* [PEP 800 – 型システムにおける非交差基底](https://peps.python.org/pep-0800/)

* [PEP 728 – TypedDict の追加アイテムへの型付け](https://peps.python.org/pep-0728/)

* [PEP 747 – 型フォームのアノテーション付け](https://peps.python.org/pep-0747/)

* [PEP 810 – 明示的な遅延インポート](https://peps.python.org/pep-0810/)

次の機能は、Python 3.14 サポートの一部として使用できます。

* [PEP 750 – テンプレート文字列 (英語)](https://peps.python.org/pep-0750/)

* [PEP 765 – 最後にブロックを終了する return/break/continue を禁止する (英語)](https://peps.python.org/pep-0765/)

* [PEP 649 – 記述子を使用したアノテーションの遅延評価 (英語)](https://peps.python.org/pep-0649/)

* [PEP 758 – 括弧なしの except および except* 式を許可する (英語)](https://peps.python.org/pep-0758/)

次の機能は、Python 3.13 サポートの一部として利用できます：

* [PEP 696 – 型パラメーターの型のデフォルト (英語)](https://peps.python.org/pep-0696/)

* [PEP 702 – 型システムを使用して非推奨をマークする (英語)](https://peps.python.org/pep-0702/)

* [PEP 742 – TypeIs による型の絞り込み (英語)](https://peps.python.org/pep-0742/)

* [PEP 705 – TypedDict: 読み取り専用アイテム (英語)](https://peps.python.org/pep-0705/)

次の機能は、Python 3.12 サポートの一部として利用できます：

* [PEP 695 – 型パラメーターの構文 (英語)](https://peps.python.org/pep-0695/)

* [PEP 669 – CPython の影響の少ないモニタリング (英語)](https://peps.python.org/pep-0669/)

* [PEP 701 – f-strings の構文形式化 (英語)](https://peps.python.org/pep-0701/)

* [PEP 698 – 静的型付け用のオーバーライドデコレータ (英語)](https://peps.python.org/pep-0698/)

* [PEP 692 – より正確な **kwargs 入力のために TypedDict を使用する (英語)](https://peps.python.org/pep-0692/)

次の機能は、Python 3.11 サポートの一部として利用できます：

* [PEP 673 – セルフタイプ (英語)](https://peps.python.org/pep-0673/)

* [PEP 646 – 可変個引数ジェネリクス (英語)](https://peps.python.org/pep-0646/)

* [PEP 654 – 例外グループと例外 *(英語)](https://peps.python.org/pep-0654/)

* [PEP 655 – 個々の TypedDict アイテムを必須または欠落している可能性があるものとしてマークする (英語)](https://peps.python.org/pep-0655/)

* [PEP 681 – データクラスの変換 (英語)](https://peps.python.org/pep-0681/)

## CLion での Python のサポート

CLion には、Python の操作に役立つ次の機能があります：

* ローカルインタープリターを [構成](configuring-available-python-interpreters.html)する機能。

* [Python コンソール](null)。

* [Python](run-debug-configuration-python.html) の実行 / デバッグ構成。

* [Python ツールサポート](https://www.jetbrains.com/ja-jp/help/pycharm/lsp-tools.html)。

* コードインスペクション。

* インテンションアクション。

* コード補完と解決。

* 組み込みのコードフォーマッタと Python [コードスタイル設定](code-style-python.html)の個別のセット。

* Python コードで [使用箇所の検索](find-highlight-usages.html)。

* [クイックドキュメント](viewing-inline-documentation.html)。

* [Python デバッガー](debugger-python.html)の設定

> **Tip:**
> Python 拡張モジュールを使用している場合は、 [CLion で Python 拡張機能をデバッグする](debugging-python-extensions.html)を参照してください。

