How to install h5py using Portable Python v2.7?

I am developing Python 2.7 on several computers, some of which I do not have permission to install software. So I am using Portable Python . One of the packages I need to use is h5py ; however, since Portable Python installs without modifying the registry, the h5py installer h5py not see it as a valid Python installation. In addition, simply extracting the h5py source to the user folder F:\py\include and adding F:\py\include to the PYTHONPATH environment variable does not work, since import h5py an ImportError: Cannot import name _errors .

How to install h5py using Portable Python 2.7?

0
source share
1 answer
  • Install Python 2.7 on a computer for which you have sufficient administrative rights.
  • Install the appropriate version of h5py in this Python installation.
  • Locate the h5py subfolder in the Python installation (usually .\Lib\site-packages\h5py ) and copy it to the specified folder F:\py\include (be sure to add F:\py\include in PYTHONPATH ). See my answer here for more details.
  • If necessary, remove the "official" version of Python.
0
source

All Articles