<aside> ❓ 사용이유 conda가 dependency 관리에 있어서 좋지 않아 Peotry를 사용해보고자 함
</aside>
linux 에서 Poetry 설치법
Bash
curl -sSL <https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py> | python -
poetry init
poetry add {pakage_name} 으로 원하는 패키지 설치
# 기본적인 설치 방법
poetry add numpy
# 여러 패키지도 한번에 가능
poetry add numpy matplotlib pandas
# 실수했다면 remover로 삭제 가능
poetry remove numpy
Poetry 명령어 설명
poetry install
poetry lock
poetry update
poetry add
# Allow >=2.0.5, <3.0.0 versions
poetry add pendulum@^2.0.5
# Allow >=2.0.5, <2.1.0 versions
poetry add pendulum@~2.0.5
# Allow >=2.0.5 versions, without upper bound
poetry add "pendulum>=2.0.5"
# Allow only 2.0.5 version
poetry add pendulum==2.0.5
# install latest version
poetry add pendulum@latest
# https version
poetry add git+https://github.com/sdispater/pendulum.git
# ssh version
poetry add git+ssh://[email protected]/sdispater/pendulum.git
poetry shell 명령어 ERROR