<bdo id='aaJvZ'></bdo><ul id='aaJvZ'></ul>
<legend id='aaJvZ'><style id='aaJvZ'><dir id='aaJvZ'><q id='aaJvZ'></q></dir></style></legend>
  • <tfoot id='aaJvZ'></tfoot>

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

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

      1. 在 Azure WebApp 中使用 PIP

        Using PIP in a Azure WebApp(在 Azure WebApp 中使用 PIP)

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

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

            <bdo id='pckgY'></bdo><ul id='pckgY'></ul>
              <tbody id='pckgY'></tbody>
            <tfoot id='pckgY'></tfoot>

                  本文介绍了在 Azure WebApp 中使用 PIP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我是 Azure 的新手,我正在尝试启动并运行 Django WebApp.我使用 FTP 上传了文件,但 Azure 没有运行我的 requirements.txt.

                  于是搜索了一下,发现可以用pip安装requirements.txt.

                  回到 Azure,PIP 似乎不起作用.不在控制台、KUDU CMD 或 KUDU powershell 中.Python 确实有效.
                  当我尝试通过 Python 安装 PIP 时,它首先说已经安装了旧版本.当 Python 尝试升级 PIP 时,它无权访问它需要编辑的文件夹.

                  我想知道如何在 azure 中使用 PIP.
                  (如果你知道安装 requirements.txt 的单独方法,请告诉我,因为我最初就是这样来的.)

                  I'm pretty new to Azure and I'm trying to get a Django WebApp up and running. I uploaded the files using FTP, But Azure doesn't run my requirements.txt.

                  So I searched for a bit and found out that you can install the requirements.txtwith pip.

                  Back in Azure, PIP doesn't seem to work. Neither in the Console, The KUDU CMD or the KUDU powershell. Python does work.
                  When I try to install PIP via Python, it first says that a older version is already installed. When Python tries to upgrade PIP, it doesn't have access to the folder that it needs to edit.

                  I was wondering how I could use PIP in azure.
                  (If you know a seperate way to install the requirements.txt please tell, because this was how I originally came to this point.)

                  推荐答案

                  您将无法升级 Django webapp 的 pip,因为您将无法访问系统文件.

                  You won't be able to upgrade the pip of your Django webapp because you will not have access to system files.

                  相反,您可以升级您的 virtualenv 的 pip,您可以通过在 install requirements.txt 命令之前在 deploy.cmd 文件中添加一行来完成.

                  Instead you can upgrade pip of your virtualenv, which you can do by adding a line in deploy.cmd file before install requirements.txt command.

                  envscriptspython -m pip install --upgrade pip

                  记住不要用 pip (env/scripts/pip) 升级 pip,否则它将卸载全局 pip.

                  Remember not to upgrade pip with pip (env/scripts/pip) else it will uninstall global pip.

                  这篇关于在 Azure WebApp 中使用 PIP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Running .jl file from R or Python(从 R 或 Python 运行 .jl 文件)
                  Running Julia .jl file in python(在 python 中运行 Julia .jl 文件)
                  How to run python3.7 based flask web api on azure(如何在 azure 上运行基于 python3.7 的烧瓶 web api)
                  Azure Python Web App Internal Server Error(Azure Python Web 应用程序内部服务器错误)
                  Run python dlib library on azure app service(在 azure app 服务上运行 python dlib 库)
                  Django channels and azure(Django 频道和天蓝色)

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

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

                      • <tfoot id='XAZdN'></tfoot>
                            <tbody id='XAZdN'></tbody>