Visual Studio中的HDF5 + netCDF [英] HDF5 + netCDF in Visual Studio

查看:276
本文介绍了Visual Studio中的HDF5 + netCDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。


我是VS的新手,我想分析netcdf文件并将它们转换为excel可读文件。


所以我安装了VS2015并使用了Python。我安装了  HCF5和netcdf4,但问题是我不知道如何将它链接到VS.我也想尝试在VS中安装netCDF4,但它说它无法找到HDF5标头。它看起来像这样:

 -----安装'netcdf4'----- 
收集netcdf4
使用缓存的netCDF4-1.2.8.tar.gz
从命令python setup.py egg_info完成输出:
从setup.cfg读取...

HDF5_DIR环境变量未设置,检查一些标准位置..
检查C:\Users \ ......
检查/ usr / local ...
checking / sw ...
check / opt ...
check / opt / local ...
check / usr ...
Traceback(最近一次调用最后一次):
File" ;< string>",第1行,在< module>中
文件" C:\ Users \ ... \ AppData \ Local \Temp \ pip-build-uajc7i6o \\\
etcdf4 \setup.py",第283行,< module> ;
引发ValueError('未找到HDF5标题')
ValueError:未找到HDF5标题

---------------- ------------------------
命令" python setup.py egg_info"在C中失败,错误代码为1:\ Users \ ... \ AppData \ Local \ Temp \ _pip-build-uajc7i6o \\\
etcdf4 \
-----无法安装' netcdf4'-----


所以我的问题是:如何将VS链接到已安装的HCF5和netCDF?或者我如何在VS中安装netCDF4?



非常感谢您的支持!!



Bernd

解决方案

嗨Bernd,


欢迎来到MSDN论坛。


请参阅您的描述,您的问题与Python开发有关。由于我们的论坛是讨论VS IDE,请重定向到这个适当的论坛:
https://github.com/Microsoft / PTVS /问题寻求更专业的支持,感谢您的理解。


如果您有任何其他问题关于VS IDE,请随时告诉我。





最好的问候,


Sara


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

解决方案

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


这篇关于Visual Studio中的HDF5 + netCDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆