aloctavodia / BAP

Bayesian Analysis with Python (Second Edition)
https://www.amazon.com/dp/B07HHBCR9G
MIT License
649 stars 250 forks source link

hdf5 installation error on windows when installing from bap.yml #79

Open opherdonchin opened 2 years ago

opherdonchin commented 2 years ago

Perhaps this has something to do with my setup, but it would be nice to know. I get the following error when running conda env create -f bap.yml

ERROR: Command errored out with exit status 1:
     command: 'C:\miniconda3\envs\bap\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\OPHERL~1\\AppData\\Local\\Temp\\pip-install-peqyy82t\\netcdf4\\setup.py'"'"'; __file__='"'"'C:\\Users\\OPHERL~1\\AppData\\Local\\Temp\\pip-install-peqyy82t\\netcdf4\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\OPHERL~1\AppData\Local\Temp\pip-pip-egg-info-m8pllb3k'
         cwd: C:\Users\OPHERL~1\AppData\Local\Temp\pip-install-peqyy82t\netcdf4\
    Complete output (28 lines):
    Package hdf5 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `hdf5.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'hdf5' found
aloctavodia commented 2 years ago

I am not able to reproduce it.

charlie-corus commented 1 year ago

I have the same problem on Mac OS Monterey with Anaconda 2022.10. I think the issue is with Anaconda or Conda, but I haven't been able to fix it. I've installed the latest versions of the packages listed in bap.yml in a Python 3.10 environment with no errors. Do you foresee major issues with this?