How to freeze packages installed only in the virtual environment?

前端 未结 7 894
情歌与酒
情歌与酒 2020-12-23 16:43

How to freeze packages installed only in the virtual environment, that is, without the global ones?

7条回答
  •  借酒劲吻你
    2020-12-23 16:44

    Install whatever you need to freeze in your virtual environment, and then

    pip freeze > requirements.txt
    

    After that install the packages in the virtual environment that you do not want to freeze.

提交回复
热议问题