使用AppEngine Python flex env的最新知识吗? [英] Up-to-date pip with AppEngine Python flex env?

查看:91
本文介绍了使用AppEngine Python flex env的最新知识吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将应用程序从Python 3.7标准环境迁移到Python 3.6 flex环境.

I want to move an app from the Python 3.7 standard environment to the Python 3.6 flex environment.

Python 3.7随附于pip 18,Python 3.6随附于pip9.Pip 10引入了一个非常有用的功能,即建立依赖关系.许多分析程序包都需要此功能才能正常工作,否则,您必须在单独的步骤中手动安装构建依赖性,例如Cython.显然,这对GAE来说不是一个开始.

Python 3.7 comes with pip 18, Python 3.6 comes with pip 9. Pip 10 introduced a very useful feature, build dependencies. Many analytics packages need this to work, otherwise you have to install build dependencies like Cython manually in a separate step. That is obviously a non-starter in GAE.

在GAE之外,解决方案是pip install --upgrade pip.

Outside of GAE the solution is pip install --upgrade pip.

是否可以让Python 3.6环境在运行pip install -r requirements.txt之前更新其pip?

Is it possible to have the Python 3.6 environment update its pip before it runs pip install -r requirements.txt?

requirements.txt中添加pip无效.

推荐答案

只能使用requirements.txt方法安装可通过pip安装的python软件包(提供的软件包).

Only python packages installable with pip (the one supplied) can be installed using the requirements.txt method.

要满足任何其他依赖关系,包括pip本身,您可以构建完全根据您的需求量身定制的运行时:

To satisfy any other dependencies, including pip itself, you can build a custom runtime tailored exactly to your needs:

在App Engine灵活环境中使用自定义运行时,以使用 Java,Python,Node.js或Go的替代实现,或编写 任何其他语言的代码.定义新的运行时环境允许 您包括其他组件,例如语言解释器或 应用服务器.

Use a custom runtime in the App Engine flexible environment to use an alternative implementation of Java, Python, Node.js, or Go, or write code in any other language. Defining new runtime environments allow you to include additional components like language interpreters or application servers.

这篇关于使用AppEngine Python flex env的最新知识吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆