<i id='UCD1X'><tr id='UCD1X'><dt id='UCD1X'><q id='UCD1X'><span id='UCD1X'><b id='UCD1X'><form id='UCD1X'><ins id='UCD1X'></ins><ul id='UCD1X'></ul><sub id='UCD1X'></sub></form><legend id='UCD1X'></legend><bdo id='UCD1X'><pre id='UCD1X'><center id='UCD1X'></center></pre></bdo></b><th id='UCD1X'></th></span></q></dt></tr></i><div id='UCD1X'><tfoot id='UCD1X'></tfoot><dl id='UCD1X'><fieldset id='UCD1X'></fieldset></dl></div>
  • <legend id='UCD1X'><style id='UCD1X'><dir id='UCD1X'><q id='UCD1X'></q></dir></style></legend>

      <small id='UCD1X'></small><noframes id='UCD1X'>

      <tfoot id='UCD1X'></tfoot>

        <bdo id='UCD1X'></bdo><ul id='UCD1X'></ul>

        自动创建 requirements.txt

        时间:2023-07-06
        <legend id='VwXGL'><style id='VwXGL'><dir id='VwXGL'><q id='VwXGL'></q></dir></style></legend>

              <small id='VwXGL'></small><noframes id='VwXGL'>

              <i id='VwXGL'><tr id='VwXGL'><dt id='VwXGL'><q id='VwXGL'><span id='VwXGL'><b id='VwXGL'><form id='VwXGL'><ins id='VwXGL'></ins><ul id='VwXGL'></ul><sub id='VwXGL'></sub></form><legend id='VwXGL'></legend><bdo id='VwXGL'><pre id='VwXGL'><center id='VwXGL'></center></pre></bdo></b><th id='VwXGL'></th></span></q></dt></tr></i><div id='VwXGL'><tfoot id='VwXGL'></tfoot><dl id='VwXGL'><fieldset id='VwXGL'></fieldset></dl></div>
                <bdo id='VwXGL'></bdo><ul id='VwXGL'></ul>
                    <tbody id='VwXGL'></tbody>

                  <tfoot id='VwXGL'></tfoot>
                  本文介绍了自动创建 requirements.txt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有时我从 github 下载 python 源代码,但不知道如何安装所有依赖项.如果没有 requirements.txt 文件,我必须手动创建它.
                  问题是:
                  给定 python 源代码目录,是否可以从导入部分自动创建 requirements.txt?

                  解决方案

                  使用 建议使用 Pipenv 或其他工具来改进您的开发流程.

                  pip3 冻结 >requirements.txt # Python3点冻结>requirements.txt # Python2

                  如果你不使用虚拟环境,pigar 会是你不错的选择.p>

                  Sometimes I download the python source code from github and don't know how to install all the dependencies. If there is no requirements.txt file I have to create it by hands.
                  The question is:
                  Given the python source code directory is it possible to create requirements.txt automatically from the import section?

                  解决方案

                  Use Pipenv or other tools is recommended for improving your development flow.

                  pip3 freeze > requirements.txt  # Python3
                  pip freeze > requirements.txt  # Python2
                  

                  If you do not use a virtual environment, pigar will be a good choice for you.

                  这篇关于自动创建 requirements.txt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:SSL:CERTIFICATE_VERIFY_FAILED 证书验证失败 下一篇:列出python包依赖项而不加载它们?

                  相关文章

                    <legend id='w93yr'><style id='w93yr'><dir id='w93yr'><q id='w93yr'></q></dir></style></legend>
                    <tfoot id='w93yr'></tfoot>
                    <i id='w93yr'><tr id='w93yr'><dt id='w93yr'><q id='w93yr'><span id='w93yr'><b id='w93yr'><form id='w93yr'><ins id='w93yr'></ins><ul id='w93yr'></ul><sub id='w93yr'></sub></form><legend id='w93yr'></legend><bdo id='w93yr'><pre id='w93yr'><center id='w93yr'></center></pre></bdo></b><th id='w93yr'></th></span></q></dt></tr></i><div id='w93yr'><tfoot id='w93yr'></tfoot><dl id='w93yr'><fieldset id='w93yr'></fieldset></dl></div>

                  1. <small id='w93yr'></small><noframes id='w93yr'>

                      • <bdo id='w93yr'></bdo><ul id='w93yr'></ul>