简体   繁体   中英

Sync Poetry with PIP

I have a virtual environment created with Poetry where I had installed some packages with pip (Airflow and their dependencies). When I execute pip list , I see all the packages installed.

I didn't install Airflow with Poetry because is not supported: https://pypi.org/project/apache-airflow/

I want to update Poetry with all the installed packages with PIP, but I don't know how to do this. When I execute poetry show I don't see any of the packages installed.

There is a way of updating the poetry.lock with the current packages installed in the active environment? Thanks!

This is not possible, because poetry does the locking without taking into account the current environment. It just takes the information from the pyproject.toml and tries to find a solution that is valid in any case.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM