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

后端 未结 1 940
长发绾君心
长发绾君心 2021-01-14 14:40

This has me pretty confused. I\'ve installed pyad using pip and everything seems fine:

C:\\WINDOWS\\system32>pip install pyad
Collecting pyad
  Using cach         


        
1条回答
  •  情话喂你
    2021-01-14 15:31

    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
    

    0 讨论(0)
提交回复
热议问题