activate virtual env inside project folder using poetry

  Kiến thức lập trình

I have created a virtual env. (my_env) and have been developing all my projects in it. I have developed a new project, also in my_env, and now I want to use poetry to create a new_env in the project folder (the default env of which is my_env).

I did the following in the terminal:

1.

poetry init --no-interaction 

and added all dependencies to [tool.poetry.dependencies]

2.

poetry config virtualenvs.in-project true
poetry install 

But this installs all dependencies in my_env, and does not create a new .venv folder inside my project directory.

Can anyone tell me what I am doing wrong?

New contributor

Goli is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT