Python Failed building wheel for backports.zoneinfo on Linux

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…


This content originally appeared on DEV Community and was authored by Shrikant Dhayje

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 with wheel and Try Again Installing.

pip install --upgrade pip wheel

pip install backports.zoneinfo

Second Solution

Try Installing the Alternative Package Named tzdata. ( Worked for My fastapi 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 đź‘‹.


This content originally appeared on DEV Community and was authored by Shrikant Dhayje


Print Share Comment Cite Upload Translate Updates
APA

Shrikant Dhayje | Sciencx (2022-01-23T09:38:53+00:00) Python Failed building wheel for backports.zoneinfo on Linux. Retrieved from https://www.scien.cx/2022/01/23/python-failed-building-wheel-for-backports-zoneinfo-on-linux/

MLA
" » Python Failed building wheel for backports.zoneinfo on Linux." Shrikant Dhayje | Sciencx - Sunday January 23, 2022, https://www.scien.cx/2022/01/23/python-failed-building-wheel-for-backports-zoneinfo-on-linux/
HARVARD
Shrikant Dhayje | Sciencx Sunday January 23, 2022 » Python Failed building wheel for backports.zoneinfo on Linux., viewed ,<https://www.scien.cx/2022/01/23/python-failed-building-wheel-for-backports-zoneinfo-on-linux/>
VANCOUVER
Shrikant Dhayje | Sciencx - » Python Failed building wheel for backports.zoneinfo on Linux. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/01/23/python-failed-building-wheel-for-backports-zoneinfo-on-linux/
CHICAGO
" » Python Failed building wheel for backports.zoneinfo on Linux." Shrikant Dhayje | Sciencx - Accessed . https://www.scien.cx/2022/01/23/python-failed-building-wheel-for-backports-zoneinfo-on-linux/
IEEE
" » Python Failed building wheel for backports.zoneinfo on Linux." Shrikant Dhayje | Sciencx [Online]. Available: https://www.scien.cx/2022/01/23/python-failed-building-wheel-for-backports-zoneinfo-on-linux/. [Accessed: ]
rf:citation
» Python Failed building wheel for backports.zoneinfo on Linux | Shrikant Dhayje | Sciencx | https://www.scien.cx/2022/01/23/python-failed-building-wheel-for-backports-zoneinfo-on-linux/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.