none
HDF5 + netCDF in Visual Studio RRS feed

  • Question

  • Hello everybody

    I#m new to VS and I want to analyze netcdf files and convert them to a excel readable file.

    So I installed VS2015 and use Python. I installed  HCF5 and netcdf4, but the problem is that I don't know how to link it to VS. I also wanted to try to install netCDF4 in VS but it said that it can't find the HDF5 headers. It looks like this:

    ----- Installing 'netcdf4' -----
    Collecting netcdf4
      Using cached netCDF4-1.2.8.tar.gz
        Complete output from command python setup.py egg_info:
        reading from setup.cfg...
        
        HDF5_DIR environment variable not set, checking some standard locations ..
        checking C:\Users\......
        checking /usr/local ...
        checking /sw ...
        checking /opt ...
        checking /opt/local ...
        checking /usr ...
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "C:\Users\...\AppData\Local\Temp\pip-build-uajc7i6o\netcdf4\setup.py", line 283, in <module>
            raise ValueError('did not find HDF5 headers')
        ValueError: did not find HDF5 headers
        
        ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in C:\Users\...\AppData\Local\Temp\pip-build-uajc7i6o\netcdf4\
    ----- Failed to install 'netcdf4' -----
    


    So my questions are: How can I link VS to the installed HCF5 and netCDF ? Or how can I install netCDF4 in VS?

    Thanks a lot for your support!!

    Bernd


    Friday, June 2, 2017 1:46 PM

All replies

  • Hi Bernd,

    Welcome to the MSDN forum.

    Refer to your description, your issue is about the Python development. Since our forum is to discuss the VS IDE, please redirect to this appropriate forum: https://github.com/Microsoft/PTVS/issues to seek for a more professional support, thank you for your understanding.

    If you have any other issues about VS IDE in the future, please feel free to let me know.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, June 5, 2017 5:18 AM