【问题标题】:kivy bluetooth and other api for android and ioskivy 蓝牙和其他适用于 android 和 ios 的 api
【发布时间】:2015-11-21 14:34:11
【问题描述】:

有人知道如何在 pycharm 中实现 Plyer 吗? 我已经看到使用 plyer 我可以为 android 和 ios 使用许多 API,但是在 github 上的页面中没有安装它的指南。我把它放在pycharm中:

from plyer import tts 

并尝试过,

from plyer import email

但它给了我一个错误。

https://github.com/kivy/plyer

【问题讨论】:

  • 什么错误,请提出问题

标签: android python ios pycharm kivy


【解决方案1】:

Plyer 是一个 Python 模块。您需要使用pip 将它安装到本地python 安装中,或者从pypi(例如pip search plyer 出现的结果),或者可能直接从github,因为它正在积极开发并且pypi 版本可能缺少一些api,其中如果你想要pip2 install git+https://github.com/kivy/plyer.git 之类的东西。

【讨论】:

  • 我建议谷歌搜索如何使用 pip,这是一个普通的 python 事情。
  • 问题是当我使用升级 pip 或安装终端时,将其安装在默认 python 路径中,而不是在 kivy.app 中
  • 因为 kivy.app 包含并使用带有自己 pip 的单独 python 安装
  • 那么我如何在 kivy.app 的解释器中安装它??
猜你喜欢
  • 2020-05-16
  • 2011-06-07
  • 1970-01-01
  • 2013-10-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多