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

How to install yfinance via python pip




yfinance - Download market data from Yahoo! Finance API, it belongs to Classifiers:

- Topic :: Office/Business
- Topic :: Office/Business :: Financial
- Topic :: Office/Business :: Financial :: Investment
- Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator

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



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_yfinance_env

- Active the virtual environment

test_yfinance_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_yfinance_env

- Active the virtual environment

source test_yfinance_env/bin/active


Step 2: OK, now, let flow below content to start the installation yfinance

To install yfinance on Windows(CMD):

py -m pip install yfinance

To install yfinance on Unix/macOs:

pip install yfinance


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

Example:

pip install yfinance==0.1.36


Please see the version list below table:

VersionReleased dateCommand
yfinance 0.1.742022-07-11T22:21:34Windows:

py -m pip install yfinance==0.1.74

Unix/macOs:

pip install yfinance==0.1.74

yfinance 0.1.732022-07-11T11:16:40Windows:

py -m pip install yfinance==0.1.73

Unix/macOs:

pip install yfinance==0.1.73

yfinance 0.1.722022-06-16T15:33:16Windows:

py -m pip install yfinance==0.1.72

Unix/macOs:

pip install yfinance==0.1.72

yfinance 0.1.712022-06-16T15:25:26Windows:

py -m pip install yfinance==0.1.71

Unix/macOs:

pip install yfinance==0.1.71

yfinance 0.1.702022-01-30T12:14:45Windows:

py -m pip install yfinance==0.1.70

Unix/macOs:

pip install yfinance==0.1.70

yfinance 0.1.692022-01-12T15:47:22Windows:

py -m pip install yfinance==0.1.69

Unix/macOs:

pip install yfinance==0.1.69

yfinance 0.1.682021-12-30T15:42:18Windows:

py -m pip install yfinance==0.1.68

Unix/macOs:

pip install yfinance==0.1.68

yfinance 0.1.672021-11-20T20:56:26Windows:

py -m pip install yfinance==0.1.67

Unix/macOs:

pip install yfinance==0.1.67

yfinance 0.1.662021-11-13T22:56:02Windows:

py -m pip install yfinance==0.1.66

Unix/macOs:

pip install yfinance==0.1.66

yfinance 0.1.652021-11-13T17:29:28Windows:

py -m pip install yfinance==0.1.65

Unix/macOs:

pip install yfinance==0.1.65

yfinance 0.1.642021-10-19T20:31:06Windows:

py -m pip install yfinance==0.1.64

Unix/macOs:

pip install yfinance==0.1.64

yfinance 0.1.632021-07-10T20:28:59Windows:

py -m pip install yfinance==0.1.63

Unix/macOs:

pip install yfinance==0.1.63

yfinance 0.1.622021-07-09T18:17:55Windows:

py -m pip install yfinance==0.1.62

Unix/macOs:

pip install yfinance==0.1.62

yfinance 0.1.612021-07-08T08:29:31Windows:

py -m pip install yfinance==0.1.61

Unix/macOs:

pip install yfinance==0.1.61

yfinance 0.1.602021-07-03T13:44:57Windows:

py -m pip install yfinance==0.1.60

Unix/macOs:

pip install yfinance==0.1.60

yfinance 0.1.592021-03-25T00:43:03Windows:

py -m pip install yfinance==0.1.59

Unix/macOs:

pip install yfinance==0.1.59

yfinance 0.1.582021-03-25T00:11:46Windows:

py -m pip install yfinance==0.1.58

Unix/macOs:

pip install yfinance==0.1.58

yfinance 0.1.572021-03-24T23:39:55Windows:

py -m pip install yfinance==0.1.57

Unix/macOs:

pip install yfinance==0.1.57

yfinance 0.1.562021-03-24T11:33:59Windows:

py -m pip install yfinance==0.1.56

Unix/macOs:

pip install yfinance==0.1.56

yfinance 0.1.552020-10-05T12:19:44Windows:

py -m pip install yfinance==0.1.55

Unix/macOs:

pip install yfinance==0.1.55

yfinance 0.1.542019-12-27T21:18:22Windows:

py -m pip install yfinance==0.1.54

Unix/macOs:

pip install yfinance==0.1.54

yfinance 0.1.532019-12-27T18:17:39Windows:

py -m pip install yfinance==0.1.53

Unix/macOs:

pip install yfinance==0.1.53

yfinance 0.1.522019-12-04T18:57:10Windows:

py -m pip install yfinance==0.1.52

Unix/macOs:

pip install yfinance==0.1.52

yfinance 0.1.512019-12-04T14:40:51Windows:

py -m pip install yfinance==0.1.51

Unix/macOs:

pip install yfinance==0.1.51

yfinance 0.1.502019-11-10T17:55:31Windows:

py -m pip install yfinance==0.1.50

Unix/macOs:

pip install yfinance==0.1.50

yfinance 0.1.492019-10-29T12:36:31Windows:

py -m pip install yfinance==0.1.49

Unix/macOs:

pip install yfinance==0.1.49

yfinance 0.1.482019-10-29T08:40:35Windows:

py -m pip install yfinance==0.1.48

Unix/macOs:

pip install yfinance==0.1.48

yfinance 0.1.472019-10-27T23:47:07Windows:

py -m pip install yfinance==0.1.47

Unix/macOs:

pip install yfinance==0.1.47

yfinance 0.1.462019-10-27T17:43:01Windows:

py -m pip install yfinance==0.1.46

Unix/macOs:

pip install yfinance==0.1.46

yfinance 0.1.452019-08-26T13:41:00Windows:

py -m pip install yfinance==0.1.45

Unix/macOs:

pip install yfinance==0.1.45

yfinance 0.1.442019-08-02T07:45:32Windows:

py -m pip install yfinance==0.1.44

Unix/macOs:

pip install yfinance==0.1.44

yfinance 0.1.432019-06-21T17:13:20Windows:

py -m pip install yfinance==0.1.43

Unix/macOs:

pip install yfinance==0.1.43

yfinance 0.1.422019-06-04T18:16:35Windows:

py -m pip install yfinance==0.1.42

Unix/macOs:

pip install yfinance==0.1.42

yfinance 0.1.412019-05-31T15:07:02Windows:

py -m pip install yfinance==0.1.41

Unix/macOs:

pip install yfinance==0.1.41

yfinance 0.1.402019-05-31T11:44:24Windows:

py -m pip install yfinance==0.1.40

Unix/macOs:

pip install yfinance==0.1.40

yfinance 0.1.392019-05-29T11:08:43Windows:

py -m pip install yfinance==0.1.39

Unix/macOs:

pip install yfinance==0.1.39

yfinance 0.1.382019-05-27T18:05:03Windows:

py -m pip install yfinance==0.1.38

Unix/macOs:

pip install yfinance==0.1.38

yfinance 0.1.372019-05-26T15:13:29Windows:

py -m pip install yfinance==0.1.37

Unix/macOs:

pip install yfinance==0.1.37

yfinance 0.1.362019-05-26T11:21:44Windows:

py -m pip install yfinance==0.1.36

Unix/macOs:

pip install yfinance==0.1.36


Step 4: Otherwise, you can install yfinance from local archives:

Download the distribution file from yfinance-0.1.74.tar.gz or the specific yfinance version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_yfinance_downloaded_file>

On Unix/macOs:

pip install <path_to_yfinance_downloaded_file>


List distribution:


Project link:

- Homepage