From 0425ea13a22a67a3b2aa7e2b614356afcc07d5ca Mon Sep 17 00:00:00 2001 From: "Kaz Saita(raspi5)" Date: Sat, 10 Aug 2024 17:00:07 +0900 Subject: [PATCH] sync notes(auto) --- content/20240315154213 pyenv.md | 3 ++- content/20240722101442 Rye.md | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/content/20240315154213 pyenv.md b/content/20240315154213 pyenv.md index 9a28c33..427f367 100644 --- a/content/20240315154213 pyenv.md +++ b/content/20240315154213 pyenv.md @@ -1,5 +1,6 @@ -t# 20240315154213 pyenv +# 20240315154213 pyenv #python #pyenv + [pyenv](https://github.com/pyenv/pyenv) pythonのバージョンセレクタ。 [[20231129211719 poetry|poetry]]とセットで使うと便利かもしれない。 ## インストール方法(Raspberry Pi OS) diff --git a/content/20240722101442 Rye.md b/content/20240722101442 Rye.md index beda4ba..f217c82 100644 --- a/content/20240722101442 Rye.md +++ b/content/20240722101442 Rye.md @@ -107,6 +107,16 @@ rye run [project名] ``` とやればよい。 +## pythonのバージョン選択 + +``` +rye toolchain list --include-downloadable +``` +で、使えるpythonの一覧が表示される。 +``` +rye pin [使いたいバージョン] +``` +で、プロジェクトで使用するpythonのバージョンを指定する。 ## poetryとの比較