1

I am pretty new to python and programming , all self taught. I started a new position late last year requiring me to create and maintain large scientific data sets. A big hurdle was learning to install the pyhdf and netcdf4 modules for 64 bit python 2.7 on windows. Here is how to do that.

Almidas
  • 379
  • 2
  • 6
  • 16

1 Answers1

5

NEW CONDENSED VERSION ----- JUNE 2016

I have learned more since I wrote this question. Anaconda makes everything except pyhdf (to my knowledge) easier.

1. Anaconda

Download Anaconda 2.7 windows 64 bit from here! and install at C:\Anaconda

2. Numpy

conda update numpy

3. PIP

conda update pip

4. Pyhdf

Download pyhdf python 2.7 64 bit from here!

pip install C:\Users\username\Downloads\pyhdf_file

5. Netcdf

conda update netcdf4

=========================================================================

=========================================================================

OLD METHOD ----- OCTOBER 2014

1. Anaconda

Download Anaconda 2.7 windows 64 bit from here! and install at C:\Anaconda

2. Numpy

In command prompt. You could also use the below method to pip install numpy.

conda install numpy

3. PIP

I used the directions found here!. They are also found below.

Download ez_setup.py and then run:

python ez_setup.py

Then download get-pip.py and run:

python get-pip.py

upgrade installed setuptools by pip:

pip install setuptools --upgrade

4. Pyhdf

Download pyhdf python 2.7 64 bit from here!

pip install C:\Users\username\Downloads\pyhdf_file

5. Netcdf

Download netcdf4 python 2.7 64 bit from here!

pip install C:\Users\username\Downloads\netcdf4_file
Community
  • 1
  • 1
Almidas
  • 379
  • 2
  • 6
  • 16
  • +1 I was in a similar situation this week and this is a good way to go. In fact I was just going to post a comment about the easier way to install that you have just added! I was following your old method when I thought to check whether `conda` supports netCDF, and it does... – MarkJ Jun 29 '16 at 15:04