pyad: Installs fine, but says it can't find adbase

廉价感情. 提交于 2019-12-01 09:23:00

That's a bug on pyad part. They're importing adbase as if it were a standalone module or package, and that's why it does not work. The proper way to fix this would be to change the import to an absolute import from pyad.adbase import ... or relative from .adbase import ....

However, if you check the master branch on Github, you will see that they have actually fixed it. But that's not all, if you check their setup.py you'll see that the version on Github is 0.5.15, while the last version on PyPI, which is the one you have installed, is 0.5.16. Weird.

I suggest you to install the package directly from Github, and that should take care of the problem. To do that, first uninstall pyad and then run

pip install https://github.com/zakird/pyad/archive/master.zip
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!