{"id":1132,"hash":"f8c978497e93b561d1ed310e8dee489717fba79e6c75da463ae8aa5b002777c6","pattern":"Python-poetry error: Setting settings.virtualenvs.in-project does not exist","full_message":"I am setting poetry to create virtual environments in the project directory.\nI entered:\n\n  poetry config settings.virtualenvs.in-project true\n\nand received error\n\n  [ValueError]\n  Setting settings.virtualenvs.in-project does not exist\n\nAlso there is the text \n\n  home/alex/.poetry/lib/poetry/_vendor/py2.7/subprocess32.py:149: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your program uses threads.\n    \"program uses threads.\", RuntimeWarning) \n\nHow can I solve the error?\n\nIt seems that error deals with version of the python.\n\nI am using Ubuntu 16.04 version\n\nPoetry version 1.0.5","ecosystem":"pypi","package_name":"python-poetry","package_version":null,"solution":"The config has changed with the release of poetry 1.0. The prefix settings is no longer needed. So just type poetry config virtualenvs.in-project true.\n\nConcerning the subprocess warning: This seems to be just a warning and has no influence on the correct working of poetry. Also have a look at my comment in poetry's issue tracker.\n\n@ptd: poetry can work with python2 and python3.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/62029371/python-poetry-error-setting-settings-virtualenvs-in-project-does-not-exist","votes":28,"created_at":"2026-04-19T04:52:24.097407+00:00","updated_at":"2026-04-19T04:52:24.097407+00:00"}