backports.zoneinfo
 
Notifications
Clear all

backports.zoneinfo

1 Posts
2 Users
0 Reactions
52 Views
0
Topic starter

Reference Section 23: Deployment on Production Server

In my requirements.txt file, there is no installed backports.zoneinfo package. I tried to install it through the command pip install backports.zoneinfo

but the following error occurred. 

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for backports.zoneinfo
Failed to build backports.zoneinfo
ERROR: Failed to build installable wheels for some pyproject.toml based projects (backports.zoneinfo)

1 Answer
0

Hi Ejaz Ali Inayat,

It looks like the error you're encountering is because the C++ build tools required to compile certain Python packages are missing. Specifically, the backports.zoneinfo package needs Microsoft Visual C++ 14.0 or higher to install successfully.

You can download the necessary tools from this link:
Microsoft C++ Build Tools

When installing, make sure to select the "Desktop development with C++" workload. Once that’s done, restart your computer to make sure everything is set up properly.

After that, give this command another try:

pip install backports.zoneinfo

Hopefully, that resolves the issue! If you’re still having trouble, just let me know, and I’ll help you out further.

Share: