Python-poetry error: Setting settings.virtualenvs.in-project does not exist
Answer a question
I am setting poetry to create virtual environments in the project directory. I entered:
poetry config settings.virtualenvs.in-project true
and received error
[ValueError] Setting settings.virtualenvs.in-project does not exist
Also there is the text
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. "program uses threads.", RuntimeWarning)
How can I solve the error?
It seems that error deals with version of the python.
I am using Ubuntu 16.04 version
Poetry version 1.0.5
Answers
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.
Concerning 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.
@ptd: poetry can work with python2 and python3.
更多推荐

所有评论(0)