- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我试图通过在 GAE Python 2.7 中运行 UI,然后将 OpenAPI 部署到也使用 Python 2.7 的 Cloud Endpoints,使我的 Google Cloud 项目以 App Engine (GAE) 标准环境为中心。我希望我的 API 能够检查 Google Cloud Storage (GCS) 中的文件,然后如果它不存在,则从数据存储中获取实体,并使用 Text- 处理一些数据-to-Speech,然后将生成的 mp3 保存到 GCS。
在 Python 2.7 下,I need to use the old (2015) cloudstorage
客户端库、google-endpoints
、google-endpoints-api-management
和 google-cloud-texttospeech
模块,全部在我的 ./lib
文件夹中。
安装这些模块后,我可以运行 "echo" demo project没有问题。这表明不存在依赖版本冲突。但是,当尝试使用 texttospeech
时,我收到此错误:
ImportError: No module named grpc._cython.cygrpc
为了解决此问题,我将以下内容添加到 app.yaml 的 libraries
部分:
- name: grpcio
version: latest
然后我收到此错误:
from six.moves import http_client
ImportError: No module named moves
我尝试类似地修复它,但错误仍然存在
- name: six
version: latest
Other solutions没有帮助。 6
1.12.0安装在./lib中,1.11.0附带最新的gcloud
云SDK(233.0.0)。
如何将文本转语音与 Cloud Endpoints 结合使用?即使我可以正常工作,我可以期望它能够与 GCS 和数据存储一起使用吗?到目前为止,在 GAE 下使用 Flask-RESTful 似乎更容易。
最佳答案
您将需要使用新的第二代 Python 3.7 运行时,这将允许您安装任意依赖项。请参阅“Python 3 Runtime Environment”了解更多详细信息。
关于python - Google Cloud Endpoints 可以与文本转语音配合使用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54612828/
自定义限流注解 先介绍一下 @Retention 和 @Target 这两个元注解 @Retention: 指定注解的生命周期(源码、class文件、运行时),其参考值见类的定义:java.lang.
在 Ubuntu 13.10 中使用 PyCharm Community Edition 和 IdeaVim 时,键盘经常停止接受输入,我必须重新启动 IDE。当我单击不同的文本区域时,光标仍然会移动
我正在开发一个Java项目,我试图让useDelimiter删除除“=”和“,”之间的文本之外的所有内容。例如,在文件的第一行我想保留“ThermostatNight”。 文本文件如下所示: E
这个问题不太可能帮助任何 future 的访问者;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况有关,这些情况并不普遍适用于互联网的全局受众。为了帮助使这个问题更广泛地适用,visit
目录 1、加入 remember-me 2、原理分析 自动登录是我们在软件开发时一个非常常见的功能,例如我们登录 QQ 邮箱: 很多网站我们在登录的时
我是开发 Android 应用程序的菜鸟。我想问一下。我的 PreferenceActivity 如何希望在不返回 MainActivity 并再次转到 PreferenceActivity 的情况下
1. 前言 大家好,我是安果! 我们都知道 Python 可以用来开发桌面应用,一旦功能开发完成,最后打包的可执行文件体积大,并且使用 Python 开发桌面应用周期相对较长 假如想快速开
我正在为命令行应用程序编写一个非常简单的 GUI 工具。它只有 2 个按钮。 连接并退出。 在 applicationDidFinishLaunching 中,我运行以下命令 NSPipe *pipe
我也在 LibGDX forums 上发布了这个问题. 嘿那里!在我的论文中,我正在编写一个 DSL 来描述图片的外观。这些图片将由 libGDX 根据 DSL-Input 绘制。目前,jetbrai
准备 SpringBoot 工程 1.新建 SpringBoot 项目,默认的端口是 8080 ,新建 Controller 和 Mapping @RestControllerpublic cla
我有类似的问题 this one 以下是我使用的: CDH4.4(配置单元 0.10) protobuf-java-.2.4.1.jar elephant-bird-hive-4.6-SNAPSHOT
我想使用 angularjs 和 angular-ui(特别是 ui-select2 功能)实现对选择输入的读/写访问控制。 场景很简单:通过使用 ng-readonly 属性,我可以控制用户是否可以
我是一名优秀的程序员,十分优秀!