美文网首页
pip 生成 requirements.txt

pip 生成 requirements.txt

作者: pokeey | 来源:发表于2018-09-28 20:02 被阅读0次

    使用pip生成requirements.txt的两种方式

    当前环境的类包,如果使用venv建议使用这种方式,否则会把你pip安装的所有包都索引进来

    pip freeze > requirements.txt
    

    pipreqs 根据项目目录生成对应包目录

    使用前需要先安装pipreqs
    pip install pipreqs
    然后 pipreqs 项目目录
    

    相关文章

      网友评论

          本文标题:pip 生成 requirements.txt

          本文链接:https://www.haomeiwen.com/subject/wxqmoftx.html