LoginSignup
3
0

More than 1 year has passed since last update.

Windowsでpoetryが上手くインストールできない場合の対処

Posted at

いつも通りPowerShellからpoetryを入れようとしたら入らなくなってた

PS C:\Users\hoge> (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -                                                                                       
Retrieving Poetry metadata

This installer is deprecated, and cannot install Poetry 1.2.0a1 or newer.
Additionally, Poetry installations created by this installer cannot `self update` to 1.2.0a1 or later.
You should migrate to https://install.python-poetry.org instead. Instructions are available at https://python-poetry.org/docs/#installation.

This installer will now exit. If you understand the above warning and wish to proceed anyway, set GET_POETRY_IGNORE_DEPRECATION=1 in the environment and run this installer again.

どうやら今(2022/09/01 20:45頃)現在進行形で公式さんが色々変更を入れてるっぽい

取りあえず、以下を参考に

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -

or

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -

で入れられる。
特に環境をいじってなければ上のコマンドでいいはず。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0