擅长:python、mysql、java
<p>根据我的理解,我认为您希望为Python创建一个虚拟环境,并使用Django WebApp的<code>requirement.txt</code>进行一些包安装,但遇到了一些问题。</p>
<p>对于Azure WebApp上的Django,我建议从Azure旧门户上的库创建一个WebApp预安装的Django。</p>
<p>但是,根据Azure官方文档,您也不能使用pip安装一些包,请参阅下面的这些案例。</p>
<blockquote>
<p>Some packages may not install using pip when run on Azure. It may simply be that the package is not available on the Python Package Index. It could be that a compiler is required (a compiler is not available on the machine running the web app in Azure App Service).</p>
</blockquote>
<p>但是您可以参考官方的疑难解答文档来处理这个问题,请参见<a href="https://azure.microsoft.com/en-us/documentation/articles/web-sites-python-create-deploy-django-app/#troubleshooting---package-installation" rel="nofollow">https://azure.microsoft.com/en-us/documentation/articles/web-sites-python-create-deploy-django-app/#troubleshooting---package-installation</a>。</p>