我使用"gcloud“将我的烧瓶应用程序部署到GCP应用程序引擎,并得到以下错误:
Step #1: Collecting MarkupSafe==1.0 (from -r requirements.txt (line 6))
Step #1: Downloading https://files.pythonhosted.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz
Step #1: Collecting pkg-resources==0.0.0 (from -r requirements.txt (line 7))
Step #1: Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from -r requirements.txt (line 7)) (from versions: )
Step #1: No matching distribution found for pkg-resources==0.0.0 (from -r requirements.txt (line 7))
Step #1: You are using pip version 9.0.3, however version 18.0 is available.
Step #1: You should consider upgrading via the '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
ERROR: build step 1 "gcr.io/cloud-builders/docker@sha256:d1dda95e92c2290a0710a263d0b5fe9c0c9857130739af0e6962e4ed03e4b0b7" failed: exit status 1看来目标VM使用的是PIP 9而不是最新的PIP 18。
不管怎样,我能避免这个错误吗?
发布于 2018-10-03 05:54:55
它似乎是一个系统缺陷:Why does pip freeze list "pkg-resources==0.0.0"?
解决方案是从您的requirements.txt项目中删除"pkg-resources==0.0.0“。
https://stackoverflow.com/questions/52619768
复制相似问题