1

I'm completely new to python and have just installed python 3.6.1. I'm trying to run a script that downloads the stock tickers from yahoo, which I've downloaded from https://pypi.python.org/pypi/Yahoo-ticker-downloader

But when I run it I get the following error.

Traceback (most recent call last): File "C:\Users\Me\Documents\Yahoo-ticker-downloader-1.0.0\Yahoo-ticker-downloader-1.0.0\YahooTickerDownloader.py", line 8, in <module> from ytd.downloader.StockDownloader import StockDownloader File "C:\Users\Me\Documents\Yahoo-ticker-downloader-1.0.0\Yahoo-ticker-downloader-1.0.0\ytd\downloader\StockDownloader.py", line 1, in <module> from ..SymbolDownloader import SymbolDownloader File "C:\Users\Me\Documents\Yahoo-ticker-downloader-1.0.0\Yahoo-ticker-downloader-1.0.0\ytd\SymbolDownloader.py", line 1, in <module> import requests ModuleNotFoundError: No module named 'requests' 

Can anyone help me with solving this issue?

2
  • 1
    Try pip install requests Commented May 2, 2017 at 10:43
  • Doc: Installing Python Modules Commented May 2, 2017 at 10:43

2 Answers 2

2

The module requests is an external module you need to install first. This may help:

pip3.6 install requests 

It's a shell command to install the latest requests module for Python 3.6. In some machines, you may need to replace pip3.6 with pip. You can check the Python external module installation documentation in this page.

Sign up to request clarification or add additional context in comments.

3 Comments

it is more explicit to write python3.6 -m pip install ... instead
You are right (I tend to use only one Python3 version). Thanks. I have updated my reply.
Hi, @The_Wiz! If this or any answer has solved your question please consider accepting it by clicking the check-mark. This indicates to the wider community that you've found a solution and gives some reputation to both the answerer and yourself. There is no obligation to do this.
0

you can install requests:

pip install requests 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.