我目前运行的是python2.7。
我已经安装了python-pushover。
但是当我尝试导入以下代码时
from pushover import init, Client'我得到以下错误
from pushover import init, Client
ImportError: cannot import name init我试过了
import pushover
from pushover import init, Client同样的错误。
发布于 2016-12-23 00:25:16
我猜是你做了pip install pushover。但是,这将安装来自the one you are interested in的different package。相反,您需要卸载该软件包:
pip uninstall pushover并安装正确的包:
pip install python-pushover一旦你这样做了,你的代码就应该可以正常工作了。
https://stackoverflow.com/questions/41283163
复制相似问题