python-2.7 - Python 2.7 导入 libsoundtouch
问题描述
我想安装 libsoundtouch(“pip install libsoundtouch”)。在安装过程之后,一切似乎都是正确的,但是当我运行我的脚本 python(2.7) 可以导入这个模块。检查后我在“/usr/local/lib/python2.7/dist-packages/libsoundtouch”中有文件。
#!/usr/bin/python
# -*- coding: utf-8 -*-
import libsoundtouch
./home/pi/myprog/scripts/python/test.py Traceback(最近一次调用最后):文件“./home/pi/myprog/scripts/python/test.py”,第 5 行,在导入 libsoundtouch 文件“ /usr/local/lib/python2.7/dist-packages/libsoundtouch/init .py”,第 9 行,从 zeroconf 导入 Zeroconf,ServiceBrowser 文件“ /usr/local/lib/python2.7/dist-packages/zeroconf .py",第 189 行 def current_time_millis() -> float: ^ SyntaxError: invalid syntax
解决方案
推荐阅读
- ros - 跨机器/主机使用 ROS 自定义消息类型
- c# - 具有多个参数的 Web API Post
- javascript - 使用 javascript/jquery 中的逗号拆分将输入中的文本转换为显示为 href 链接
- javascript - SendMouseClickEvent 有时不起作用
- java - 使用 aws cognito 用户池登录 Facebook\Google
- wordpress - 在 Hybris 上创建博客
- haskell - 由于使用“req”而产生的模棱两可的类型变量“a0”
- android - 如何在按钮单击时打开底部导航活动?
- c# - 没有为 index.html 调用 StaticFileOptions.OnPrepareResponse
- javascript - 需要帮助在 javascript 中的表之间切换