5
2

More than 3 years have passed since last update.

zsh環境でpoetryのインストール(エラー対処)方法

Last updated at Posted at 2020-08-01

前提

MacOSがCatalinaからターミナルのデフォルトがzshになり、poetryを追加するだけではエラーになってしまいます。
~/.zshrcにパス追記することで対応できましたので参考にしてください。

poetryのインストール

curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python

zsh環境ではこの状態でpoetryコマンドを実行するとエラーになります

poetry --version
> zsh: command not found: poetry

.zshrcにパスを追記

vim ~/.zshrc
export PATH="$HOME/.poetry/bin:$PATH"

ターミナルを再起動

poetry --version
> Poetry version 1.0.10
poetry self update
> You are using the latest version

お疲れさまでした。

5
2
1

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
5
2