0
0

poetry + pyenv

Posted at

2024/04/11現在のpoetry install

curl -sSL https://install.python-poetry.org | python3 -

python じゃなくて python3 なのはもう受け入れる。

パスは自動で設定されなかったみたいなので、.bash_profile に追加
export PATH="/home/{username}/.local/bin:$PATH"

$ which poetry
/home/{username}/.local/bin/poetry

poetry で特定のフォルダは以下に.venvを作って参照したい

$ poetry config --list
()
virtualenvs.in-project = null
()

こいつをtrueにしてから poetry install するのが良い

poetry config --local virtualenvs.in-project true

全てにおいてカレントに出すなら --local はいらない。それでいい気もする。

0
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
0
0