如题,之前生成了一份requirements.txt文件,现在安装了新扩展,需要更新一下requirements.txt文件,我在cmd命令进入virtual环境后直接用 pip freeze > requirements.txt 回车,然后看requirements.txt 文件还是没有变化。想删除文件然后再生成,但是这样太麻烦pip应该有覆盖选项的。

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
并不是没变化,而是可能你把目录搞错了,实在不行就把txt带上绝对路径吧