简体   繁体   English

如何在 Google App Engine Flexible 上使用最新版本的 pandas

[英]How do I use the latest version of pandas on Google App Engine Flexible

I am using Google App Engine Flexible with a standard Python 3 runtime.我正在使用具有标准 Python 3 运行时的 Google App Engine Flexible。 I had been using pandas 1.0.5 until now.到目前为止,我一直在使用 pandas 1.0.5。 I want to start using pandas 1.3.4.我想开始使用 pandas 1.3.4。 So I updated requirements.txt and tried deploying to GAE.所以我更新了requirements.txt并尝试部署到 GAE。 I got an error我有一个错误

Step #1: ERROR: Could not find a version that satisfies the requirement pandas==1.3.4 (from -r requirements.txt (line 16)) (from versions: 0.1, 0.2, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.5.0, 0.6.0, 0.6.1, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.16.0, 0.16.1, 0.16.2, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.21.0, 0.21.1, 0.22.0, 0.23.0, 0.23.1, 0.23.2, 0.23.3, 0.23.4, 0.24.0, 0.24.1, 0.24.2, 0.25.0, 0.25.1, 0.25.2, 0.25.3, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5)
Step #1: ERROR: No matching distribution found for pandas==1.3.4 (from -r requirements.txt (line 16))
Step #1: WARNING: You are using pip version 20.2.2; however, version 21.3.1 is available.
Step #1: You should consider upgrading via the '/env/bin/python -m pip install --upgrade pip' command.
Step #1: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
Finished Step #1
ERROR

I see that the latest pandas version it lists is 1.1.5, even though pandas 1.3.4 is available.我看到它列出的最新 pandas 版本是 1.1.5,即使 pandas 1.3.4 可用。

  1. How often does GCloud update the package versions that are available on its standard runtimes? GCloud 多久更新一次在其标准运行时可用的 package 版本?

  2. Is the version availability related to the version of pip that is part of the custom runtime?版本可用性是否与作为自定义运行时一部分的pip版本相关?

  3. Is there any way I can use the latest version of packages without having to build a custom runtime?有什么方法可以使用最新版本的软件包而无需构建自定义运行时?

My original app.yaml had python_version: 3 .我原来app.yamlpython_version: 3 The Google Cloud docshere state that python_version: 3 in app.yaml refers to Python 3.7.2 . 此处的 Google Cloud 文档 state app.yaml 中的app.yaml python_version: 3指的是Python 3.7.2 However, the build logs contained a line RUN virtualenv --no-download /env -p python3.6 .但是,构建日志包含一行RUN virtualenv --no-download /env -p python3.6

SOLUTION : Change the config to python_version: 3.7 .解决方案:将配置更改为python_version: 3.7 Now the corresponding line in the build log says RUN virtualenv --no-download /env -p python3.7 .现在构建日志中的相应行显示RUN virtualenv --no-download /env -p python3.7

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM