[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #HHZ-880022]: PYGRIB Library Error



Greetings!

Apologies for the delayed response.

Installing PyGRIB using pip (following the instructions 
https://jswhit.github.io/pygrib/installing.html) on Windows is challenging 
because you need to have a working compiler/build environment.

My recommendation is to set up an environment using miniforge, which is a small 
distribution of Conda configured to use the conda-forge channel:

  https://github.com/conda-forge/miniforge/releases/tag/4.12.0-2

Specifically, this one should work for you on Windows:

  
https://github.com/conda-forge/miniforge/releases/download/4.12.0-2/Miniforge3-Windows-x86_64.exe

From there you should be able to activate the conda environment and install 
pygrib with:

    conda install pygrib

For more information, you can check out MetPy Mondays #1-#3 (miniforge can 
substitute for Anaconda/miniconda):

  https://www.youtube.com/watch?v=15DNH25UCi0

Hope this helps,

Ryan

> Hello,
> 
> I am trying to follow the "MetPy Mondays #135 -Reading GRIB files" video on 
> YouTube<https://youtu.be/yLoudFv3hAY>, but I am having trouble with the 
> pygrib library. Is there a tutorial how to download this library? I tried 
> "pip install pygrib" and received two errors:
> 
> 
> 1.  error failed building wheel for pygrib
> 2.  error: could not build wheels for pygribs which use PEP 517 and cannot be 
> installed directly.  Microsoft C++ Build Tools - Visual 
> Studio<https://visualstudio.microsoft.com/visual-cpp-build-tools/> 
> (references this link in the error)
> [https://visualstudio.microsoft.com/wp-content/uploads/2020/07/Facebook.png]<https://visualstudio.microsoft.com/visual-cpp-build-tools/>
> Microsoft C++ Build Tools - Visual 
> Studio<https://visualstudio.microsoft.com/visual-cpp-build-tools/>
> visualstudio.microsoft.com
> 
> 
> Do you know how to solve this issue? Most of the tutorials use pygribs, but I 
> keep getting this error.


Ticket Details
===================
Ticket ID: HHZ-880022
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.