python - pip install package - failed with error code 1/2 -
i'm having issues installing pygrib
using pip
. tried installing pygrib
using easy_install
, , similar error.
using pip
error:
command "c:\users\brandon\appdata\local\enthought\canopy\edm\envs\user\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\brandon\\appdata\\local\\temp\\pip-build-veulay9n\\pygrib\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\brandon\appdata\local\temp\pip-ff_s5247-record\install-record.txt --single-version-externally-managed --compile" failed error code 1 in c:\users\brandon\appdata\local\temp\pip-build-veulay9n\pygrib\
using easy_install
error:
c:\users\brandon\appdata\local\enthought\canopy\edm\envs\user\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : warning msg: using deprecated numpy api, disable #defining npy_no_deprecated_api npy_1_7_api_version pygrib.c(242): fatal error c1083: cannot open include file: 'grib_api.h': no such file or directory error: command 'c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\bin\\x86_amd64\\cl.exe' failed exit status 2
in fact, pygrib
package doesn't work when try pip
or easy_install
- works package try install. what's going on here , how fix issue?
pygrib
python wrapper libgrib-api
. compile pygrib
need compile libgrib-abi
, install library , header files. download sources https://software.ecmwf.int/wiki/display/grib/releases.
Comments
Post a Comment