from pytrends.pyGTrends import pyGTrends 不工作

from pytrends.pyGTrends import pyGTrendsnot working

我使用这个 wheel 文件 pytrends.whl 和下面的目录安装了 pytrends

 Directory of C:\Python35\Lib\site-packages\pytrends

09/15/2016  10:30 AM    <DIR>          .
09/15/2016  10:30 AM    <DIR>          ..
09/15/2016  10:30 AM             6,799 request.py
09/15/2016  10:30 AM                 0 __init__.py
09/15/2016  10:30 AM    <DIR>          __pycache__
               2 File(s)          6,799 bytes
               3 Dir(s)  323,016,486,912 bytes free

 Directory of C:\Python35\Lib\site-packages\pytrends-3.1.0.dist-info

09/15/2016  10:30 AM    <DIR>          .
09/15/2016  10:30 AM    <DIR>          ..
09/15/2016  10:30 AM             7,900 DESCRIPTION.rst
09/15/2016  10:30 AM                 4 INSTALLER
09/15/2016  10:30 AM             8,622 METADATA
09/15/2016  10:30 AM               878 metadata.json
09/15/2016  10:30 AM               835 RECORD
09/15/2016  10:30 AM                 9 top_level.txt
09/15/2016  10:30 AM               116 WHEEL
               7 File(s)         18,364 bytes
               2 Dir(s)  323,017,011,200 bytes free

从这里开始,与导入的子模块位于包文件夹内的任何包不同,这个包基本上不包含任何子模块。这可能是我安装软件包的方式。 这个 ome liner ,

from pytrends.pyGTrends import pyGTrends

出现以下错误:

Traceback (most recent call last):
  File "GoogleTrend.py", line 1, in <module>
    from pytrends.pyGTrends import pyGTrends
ImportError: No module named 'pytrends.pyGTrends'
Press any key to continue . . .

还是改用 gtrends 模块更好?我正在使用 python 3.5

你应该使用 from pytrends.request import TrendReq.

example.py