Problem
Python Failed building wheel for backports.zoneinfo For Operating System Other Than Windows Like Linux Or MacOs.
Details
The issue is mostly related to retrieving data from OS About Current Time With IANA And
backports.zoneinfo
is pre-builted for Windows And We Have to Build The Package For Linux Or MacOS With Ruby Compiler Or Any Other Language Specified By Error Also.
First Solution
Upgrade the
pip
withwheel
and Try Again Installing.
pip install --upgrade pip wheel
pip install backports.zoneinfo
Second Solution
Try Installing the Alternative Package Named
tzdata
. ( Worked for Myfastapi
project. )The Package Supports Python 3 But It's Readme Is Not Updated About the Python 2 Support By Dev IDK Why 🤔.
pip install tzdata
Third Solution
Install
Ruby Compiler
From Your System Package Manager and Run The pip code again.Given Below is for
Ubuntu
.
sudo apt-get install ruby-full
pip install backports.zoneinfo
Give a reaction if any one solutions helped you in any way.
Bye 👋.
Top comments (1)
When questions are based on educational content yesornowheel.io/, the game can reinforce learning and help retain information.