我將 Google App Engine 靈活與標準 Python 3 運行時一起使用。到目前為止,我一直在使用 Pandas 1.0.5。我想開始使用熊貓 1.3.4。所以我更新requirements.txt并嘗試部署到 GAE。我有一個錯誤
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
我看到它列出的最新 Pandas 版本是 1.1.5,即使 Pandas 1.3.4 可用。
GCloud 多久更新一次在其標準運行時可用的軟體包版本?
版本可用性是否與
pip屬于自定義運行時的版本相關?有什么方法可以使用最新版本的軟體包而無需構建自定義運行時?
uj5u.com熱心網友回復:
我原來的app.yaml有python_version: 3。此處的 Google Cloud 檔案指出python_version: 3inapp.yaml指的是Python 3.7.2. 但是,構建日志包含一行RUN virtualenv --no-download /env -p python3.6.
解決方案:將配置更改為python_version: 3.7. 現在構建日志中的相應行顯示RUN virtualenv --no-download /env -p python3.7.
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/363292.html
上一篇:詹金斯:無法運行程式“/Users/user/.jenkins/workspace/jenkinsjob/taurus-venv/bin/bzterror=2
