no module named pytrends.request
See original GitHub issueI am trying to run python 3.6 code in VS Code using the plugin, but it can’t find the module that I installed using pip3 install pytrends
, throws an error, and quits:
Traceback (most recent call last): File “/Users/nathanparekh/python-project/…/fetch.py”, line 4, in <module>
from pytrends.request import TrendReq
ImportError: No module named pytrends.request
However, using VSCode “Run Python File in Terminal” works just fine.
How do I fix this?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
ModuleNotFoundError: No module named 'pytrends.request ...
Was trying to execute the github example from pytrends.request import TrendReq pytrends = TrendReq(hl='en-US', tz=360) .
Read more >python - Cannot import pytrends? - Stack Overflow
from pytrends.request import TrendReq ... requests ModuleNotFoundError: No module named 'pytrends.request'; 'pytrends' is not a package.
Read more >ModuleNotFoundError: No module named 'pytrends'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'pytrends' How to remove the ModuleNot.
Read more >pytrends - PyPI
pytrends. Introduction. Unofficial API for Google Trends. Allows simple interface for automating downloading of reports from Google Trends.
Read more >Pytrends to get trending search suggestions for Keywords
ModuleNotFoundError: No module named 'pytrends' ... from pytrends.request import TrendReq pytrends = TrendReq() df = pytrends.trending_searches(pn='india') ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think I found the problem, but I don’t know how to fix it: Code Runner doesn’t respect the selected python interpreter, so it is running using python 2.7 instead of python 3.6 where the module is installed. Is there any fix to this? For right now I’m using “Run Python File in Terminal” in the right-click menu that I think is built into Visual Studio.
i am using python 2.7.14 along with the pip but i am also facing this issue
Traceback (most recent call last): File “E:\pytrends\pytrends-master\examples\example.py”, line 2, in <module> from pytrends.request import TrendReq ImportError: No module named pytrends.request