找不到满足要求的版本 tensorflow==1.12.0 [部署 Flask Python Cloud foundry 上的应用程序]
Could not find a version that satisfies the requirement tensorflow==1.12.0 [ Deploying Flask Python App on Cloud foundry]
Hello
Need help in resolving the following error while deploying Python Flask App on Pivotal Cloud Foundry.
"Could not find a version that satisfies the requirement tensorflow==1.12.0"
我错过了什么或做错了什么?
I have tried with various tensorflow versions(1.13.x,1.14.x,2.1.x) along with different python versions 3.7.x,3.8.x, but nothing has worked out.
Is there any specific version that i need to vendor before pushing app
requirements.txt:
Flask
Jinja2
tensorflow==1.12.0
numpy==1.13.3
pandas==0.25.3
runtime.txt:
python-3.6.8
manifest.yaml:
applications:
- memory: 1GB
disk_quota: 1GB
random-route: true
buildpack: python_buildpack
stack: cflinuxfs2
procfile:
web: python -m flask run --host=0.0.0.0 --port=8080
附上错误。
Any help on this would be much appreciated.Thanks.
您的应用程序是否具有从互联网下载依赖项的能力?看起来 pip
正在尝试下载依赖项但失败了。然后回过头来查看供应商的依赖项,发现有 none,所以它失败了。
我认为您需要启用 Internet 访问以便可以下载依赖项,或者您需要 vendor them using this process. If you are in a corporate environment, you may need to set http_proxy
and https_proxy
to point to your company's proxy。
除此之外,您需要将堆栈从 cflinuxfs2
更改为 cflinuxfs3
。您使用的堆栈早在 2019 年 Spring 就已停产,因此此时它已经过时了。切换到 cflinuxsf3
应该对你的应用程序影响很小,你仍然会有相同的 Python,等等......它只会使用最新的 OS 级别的依赖项,比如 OpenSSL .您只需要在 manifest.yml
中更新 stack: cflinuxfs3
并再次推送该应用程序。
Hello
Need help in resolving the following error while deploying Python Flask App on Pivotal Cloud Foundry.
"Could not find a version that satisfies the requirement tensorflow==1.12.0"
我错过了什么或做错了什么?
I have tried with various tensorflow versions(1.13.x,1.14.x,2.1.x) along with different python versions 3.7.x,3.8.x, but nothing has worked out. Is there any specific version that i need to vendor before pushing app
requirements.txt:
Flask
Jinja2
tensorflow==1.12.0
numpy==1.13.3
pandas==0.25.3
runtime.txt:
python-3.6.8
manifest.yaml:
applications:
- memory: 1GB
disk_quota: 1GB
random-route: true
buildpack: python_buildpack
stack: cflinuxfs2
procfile:
web: python -m flask run --host=0.0.0.0 --port=8080
附上错误。
Any help on this would be much appreciated.Thanks.
您的应用程序是否具有从互联网下载依赖项的能力?看起来 pip
正在尝试下载依赖项但失败了。然后回过头来查看供应商的依赖项,发现有 none,所以它失败了。
我认为您需要启用 Internet 访问以便可以下载依赖项,或者您需要 vendor them using this process. If you are in a corporate environment, you may need to set http_proxy
and https_proxy
to point to your company's proxy。
除此之外,您需要将堆栈从 cflinuxfs2
更改为 cflinuxfs3
。您使用的堆栈早在 2019 年 Spring 就已停产,因此此时它已经过时了。切换到 cflinuxsf3
应该对你的应用程序影响很小,你仍然会有相同的 Python,等等......它只会使用最新的 OS 级别的依赖项,比如 OpenSSL .您只需要在 manifest.yml
中更新 stack: cflinuxfs3
并再次推送该应用程序。