Skip to content

Conversation

@Jiisou
Copy link

@Jiisou Jiisou commented Jul 22, 2025

Poetry 2.0 이후부터 poetry shell 명령어가 기본 설치에서 제외됨에 따라 수정된 실행과정을 반영한 내용입니다.


p7 (1.2. 포어트리를 이용한 가상 환경과 의존성 관리)

  • 원문
$ poetry shell
Creating virtualenv fastapi-ca-6_... in /Users/name/Library/Caches/pypoetry/virtualenvs
Spawning shell within /Users/name/Library/Caches/pypoetry/virtualenvs/fastapi-ca-6_...
$ emulate bash -c '. /Users/name/Library/Caches/pypoetry/virtualenvs/fastapi-ca-6_.../bin/activate
(fastapi-ca) $
  • 수정
$ poetry shell
**Looks like you're trying to use a Poetry command that is not available.**
Since Poetry (2.0.0), the shell command is not installed by default. You can use,
  - the new env activate command (recommended); or
  - the shell plugin to install the shell command
Documentation: https://python-poetry.org/docs/managing-environments/#activating-the-environment
Note that the env activate command is not a direct replacement for shell command.
$ poetry env use python3.11
$ poetry env list --full-path
/Users/jisu/Library/Caches/pypoetry/virtualenvs/fastapi-ca-xxx...-py3.11 (Activated)
$ emulate bash -c '/.../bin/activate'

Poetry 2.0 이후부터 poetry shell 명령어가 기본 설치에서 제외
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant