Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install yahoo-finance via python pip




yahoo-finance - Python module to get stock data from Yahoo! Finance, it belongs to Classifiers:

- Intended Audience :: Financial and Insurance Industry
- Programming Language :: Python :: 2.6
- Topic :: Office/Business
- Topic :: Office/Business :: Financial
- Topic :: Office/Business :: Financial :: Investment

When you know about this project and you want to new install yahoo-finance to support your project or you get trouble as ModuleNotFoundError: No module named "yahoo-finance" or ImportError: cannot import name "yahoo-finance" in your project, let follow this tutorial to install yahoo-finance



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_yahoo-finance_env

- Active the virtual environment

test_yahoo-finance_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_yahoo-finance_env

- Active the virtual environment

source test_yahoo-finance_env/bin/active


Step 2: OK, now, let flow below content to start the installation yahoo-finance

To install yahoo-finance on Windows(CMD):

py -m pip install yahoo-finance

To install yahoo-finance on Unix/macOs:

pip install yahoo-finance


Step 3: If you want to install a specific yahoo-finance version, add ==<yahoo-finance version> to the end command line

Example:

pip install yahoo-finance==0.9.2


Please see the version list below table:

VersionReleased dateCommand
yahoo-finance 1.4.02016-11-17T18:28:22Windows:

py -m pip install yahoo-finance==1.4.0

Unix/macOs:

pip install yahoo-finance==1.4.0

yahoo-finance 1.3.22016-10-20T11:05:46Windows:

py -m pip install yahoo-finance==1.3.2

Unix/macOs:

pip install yahoo-finance==1.3.2

yahoo-finance 1.3.12016-10-20T07:20:55Windows:

py -m pip install yahoo-finance==1.3.1

Unix/macOs:

pip install yahoo-finance==1.3.1

yahoo-finance 1.2.22016-10-17T17:16:15Windows:

py -m pip install yahoo-finance==1.2.2

Unix/macOs:

pip install yahoo-finance==1.2.2

yahoo-finance 1.2.12015-05-06T10:15:37Windows:

py -m pip install yahoo-finance==1.2.1

Unix/macOs:

pip install yahoo-finance==1.2.1

yahoo-finance 1.2.02015-05-04T22:42:46Windows:

py -m pip install yahoo-finance==1.2.0

Unix/macOs:

pip install yahoo-finance==1.2.0

yahoo-finance 1.1.42015-02-23T22:40:57Windows:

py -m pip install yahoo-finance==1.1.4

Unix/macOs:

pip install yahoo-finance==1.1.4

yahoo-finance 1.1.32015-01-27T21:15:58Windows:

py -m pip install yahoo-finance==1.1.3

Unix/macOs:

pip install yahoo-finance==1.1.3

yahoo-finance 1.1.22015-01-26T22:49:07Windows:

py -m pip install yahoo-finance==1.1.2

Unix/macOs:

pip install yahoo-finance==1.1.2

yahoo-finance 1.1.12015-01-25T01:12:38Windows:

py -m pip install yahoo-finance==1.1.1

Unix/macOs:

pip install yahoo-finance==1.1.1

yahoo-finance 1.0.22014-05-23T23:51:55Windows:

py -m pip install yahoo-finance==1.0.2

Unix/macOs:

pip install yahoo-finance==1.0.2

yahoo-finance 1.0.12014-05-03T17:39:31Windows:

py -m pip install yahoo-finance==1.0.1

Unix/macOs:

pip install yahoo-finance==1.0.1

yahoo-finance 1.0.02014-05-03T17:18:40Windows:

py -m pip install yahoo-finance==1.0.0

Unix/macOs:

pip install yahoo-finance==1.0.0

yahoo-finance 0.9.22014-05-03T17:08:29Windows:

py -m pip install yahoo-finance==0.9.2

Unix/macOs:

pip install yahoo-finance==0.9.2


Step 4: Otherwise, you can install yahoo-finance from local archives:

Download the distribution file from yahoo-finance-1.4.0.tar.gz or the specific yahoo-finance version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_yahoo-finance_downloaded_file>

On Unix/macOs:

pip install <path_to_yahoo-finance_downloaded_file>


List distribution:


Project link:

- Homepage
- Download