2024-03-30 11:45:21 +09:00
|
|
|
|
## 20231129211719 poetry
|
|
|
|
|
#tech #python
|
|
|
|
|
PoetryはPythonのパッケージマネージャの一つ。
|
|
|
|
|
|
2024-04-26 17:45:12 +09:00
|
|
|
|
プロジェクトを作るのにも使える。 (ver 1.8以降) cf. [[20240311211049 pythonのプロジェクト構成]]
|
|
|
|
|
|
2024-04-18 17:30:13 +09:00
|
|
|
|
[Poetry - Python dependency management and packaging made easy](https://python-poetry.org/)
|
|
|
|
|
|
2024-04-18 14:00:08 +09:00
|
|
|
|
インストールは debian系であれば
|
|
|
|
|
```bash
|
|
|
|
|
curl -sSL https://install.python-poetry.org | python3 -
|
|
|
|
|
```
|
|
|
|
|
|
2024-03-30 11:45:21 +09:00
|
|
|
|
インストールしたら、
|
|
|
|
|
```
|
|
|
|
|
$ poetry config virtualenvs.in-project true
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
を実行するのをわすれないで!!(何回も忘れた)
|
|
|
|
|
|
|
|
|
|
## Refs.
|
|
|
|
|
- [Poetryをサクッと使い始めてみる #Python - Qiita](https://qiita.com/ksato9700/items/b893cf1db83605898d8a)
|
2024-03-30 12:00:11 +09:00
|
|
|
|
- [pyenv+PoetryでのPython環境構築方法を覚えられない人(私)のための手順書 #Python - Qiita](https://qiita.com/Ryku/items/512a6744bfa9903bf2dd)
|