How To Install python3-yfinance on Fedora 36

In this tutorial we learn how to install python3-yfinance in Fedora 36. python3-yfinance is Yahoo! Finance market data downloader

Introduction

In this tutorial we learn how to install python3-yfinance on Fedora 36.

What is python3-yfinance

Ever since Yahoo! finance decommissioned their historical data API, many programs that relied on it to stop working. yfinance aims to solve this problem by offering a reliable, threaded, and Pythonic way to download historical market data from Yahoo! finance.

We can use yum or dnf to install python3-yfinance on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-yfinance.

Install python3-yfinance on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-yfinance using dnf by running the following command:

sudo dnf -y install python3-yfinance

Install python3-yfinance on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-yfinance using yum by running the following command:

sudo yum -y install python3-yfinance

How To Uninstall python3-yfinance on Fedora 36

To uninstall only the python3-yfinance package we can use the following command:

sudo dnf remove python3-yfinance

python3-yfinance Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/yfinance
/usr/lib/python3.10/site-packages/yfinance-0.1.70.dist-info
/usr/lib/python3.10/site-packages/yfinance-0.1.70.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/yfinance-0.1.70.dist-info/LICENSE.txt
/usr/lib/python3.10/site-packages/yfinance-0.1.70.dist-info/METADATA
/usr/lib/python3.10/site-packages/yfinance-0.1.70.dist-info/WHEEL
/usr/lib/python3.10/site-packages/yfinance-0.1.70.dist-info/entry_points.txt
/usr/lib/python3.10/site-packages/yfinance-0.1.70.dist-info/top_level.txt
/usr/lib/python3.10/site-packages/yfinance/__init__.py
/usr/lib/python3.10/site-packages/yfinance/__pycache__
/usr/lib/python3.10/site-packages/yfinance/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/multi.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/multi.cpython-310.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/shared.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/shared.cpython-310.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/ticker.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/ticker.cpython-310.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/tickers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/tickers.cpython-310.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yfinance/__pycache__/version.cpython-310.pyc
/usr/lib/python3.10/site-packages/yfinance/base.py
/usr/lib/python3.10/site-packages/yfinance/multi.py
/usr/lib/python3.10/site-packages/yfinance/shared.py
/usr/lib/python3.10/site-packages/yfinance/ticker.py
/usr/lib/python3.10/site-packages/yfinance/tickers.py
/usr/lib/python3.10/site-packages/yfinance/utils.py
/usr/lib/python3.10/site-packages/yfinance/version.py
/usr/share/doc/python3-yfinance
/usr/share/doc/python3-yfinance/README.md

References

Summary

In this tutorial we learn how to install python3-yfinance on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).