Closed randyardianto closed 3 years ago
hello everyone,
i've tried to install wrf modul with pycharm but getting error,, any sugestion for this problem?
(base) C:\Users\asus\AppData\Local\Temp\WRF2Delft3d.py>pip install wrf-python Collecting wrf-python Using cached wrf-python-1.3.1.tar.gz (1.1 MB) Requirement already satisfied: numpy>=1.11 in c:\users\asus\miniconda3\lib\site-packages (from wrf-python) (1.21.0) Requirement already satisfied: wrapt in c:\users\asus\appdata\roaming\python\python38\site-packages (from wrf-python) (1.11.2) Requirement already satisfied: setuptools in c:\users\asus\miniconda3\lib\site-packages (from wrf-python) (50.3.1.post20201107) Building wheels for collected packages: wrf-python Building wheel for wrf-python (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\asus\miniconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\asus\AppData\Local\Temp\pip-install-petjy ihp\wrf-python\setup.py'"'"'; file='"'"'C:\Users\asus\AppData\Local\Temp\pip-install-petjyihp\wrf-python\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'" ', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\asus\AppData\ Local\Temp\pip-wheel-ik4g07gm' cwd: C:\Users\asus\AppData\Local\Temp\pip-install-petjyihp\wrf-python\ Complete output (70 lines): running bdist_wheel running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "wrf._wrffortran" sources f2py options: [] adding 'build\src.win-amd64-3.8\build\src.win-amd64-3.8\wrf\fortranobject.c' to sources. adding 'build\src.win-amd64-3.8\build\src.win-amd64-3.8\wrf' to include_dirs. adding 'build\src.win-amd64-3.8\wrf_wrffortran-f2pywrappers.f' to sources. adding 'build\src.win-amd64-3.8\wrf_wrffortran-f2pywrappers2.f90' to sources. build_src: building npy-pkg config files running build_py creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\wrf copying src\wrf\api.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\cache.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\computation.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\config.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\constants.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\coordpair.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\decorators.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\destag.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\extension.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\geobnds.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_cape.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_cloudfrac.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_ctt.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_dbz.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_dewpoint.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_geoht.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_helicity.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_latlon.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_omega.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_precip.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_pressure.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_pw.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_rh.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_slp.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_temp.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_terrain.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_times.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_uvmet.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_vorticity.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_wind.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\interp.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\interputils.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\latlonutils.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\metadecorators.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\projection.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\projutils.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\py3compat.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\routines.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\specialdec.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\units.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\util.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\version.py -> build\lib.win-amd64-3.8\wrf copying src\wrf__init__.py -> build\lib.win-amd64-3.8\wrf creating build\lib.win-amd64-3.8\wrf\data copying src\wrf\data\psadilookup.dat -> build\lib.win-amd64-3.8\wrf\data running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler customize MSVCCompiler using build_ext CCompilerOpt.cc_test_flags[1008] : testing flags (/O2) error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ CCompilerOpt.cache_flush[804] : write cache to path -> C:\Users\asus\AppData\Local\Temp\pip-install-petjyihp\wrf-python\build\temp.win-amd64-3.8\Release\ccompiler_o pt_cache_ext.py
ERROR: Command errored out with exit status 1: 'C:\Users\asus\miniconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\asus\AppD ata\Local\Temp\pip-install-petjyihp\wrf-python\setup.py'"'"'; file='"'"'C:\Users\asus\AppData\Local\Temp\pip-install-petjyihp\wrf-python\setup.py'"'" ';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' ins tall --record 'C:\Users\asus\AppData\Local\Temp\pip-record-ei73smes\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\asus \miniconda3\Include\wrf-python' Check the logs for full command output.
Thanks for any help
the problem is solved, you can download and install the wheel from here https://www.lfd.uci.edu/~gohlke/pythonlibs/#wrf_python
hello everyone,
i've tried to install wrf modul with pycharm but getting error,, any sugestion for this problem?
(base) C:\Users\asus\AppData\Local\Temp\WRF2Delft3d.py>pip install wrf-python Collecting wrf-python Using cached wrf-python-1.3.1.tar.gz (1.1 MB) Requirement already satisfied: numpy>=1.11 in c:\users\asus\miniconda3\lib\site-packages (from wrf-python) (1.21.0) Requirement already satisfied: wrapt in c:\users\asus\appdata\roaming\python\python38\site-packages (from wrf-python) (1.11.2) Requirement already satisfied: setuptools in c:\users\asus\miniconda3\lib\site-packages (from wrf-python) (50.3.1.post20201107) Building wheels for collected packages: wrf-python Building wheel for wrf-python (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\asus\miniconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\asus\AppData\Local\Temp\pip-install-petjy ihp\wrf-python\setup.py'"'"'; file='"'"'C:\Users\asus\AppData\Local\Temp\pip-install-petjyihp\wrf-python\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'" ', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\asus\AppData\ Local\Temp\pip-wheel-ik4g07gm' cwd: C:\Users\asus\AppData\Local\Temp\pip-install-petjyihp\wrf-python\ Complete output (70 lines): running bdist_wheel running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "wrf._wrffortran" sources f2py options: [] adding 'build\src.win-amd64-3.8\build\src.win-amd64-3.8\wrf\fortranobject.c' to sources. adding 'build\src.win-amd64-3.8\build\src.win-amd64-3.8\wrf' to include_dirs. adding 'build\src.win-amd64-3.8\wrf_wrffortran-f2pywrappers.f' to sources. adding 'build\src.win-amd64-3.8\wrf_wrffortran-f2pywrappers2.f90' to sources. build_src: building npy-pkg config files running build_py creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\wrf copying src\wrf\api.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\cache.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\computation.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\config.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\constants.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\coordpair.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\decorators.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\destag.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\extension.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\geobnds.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_cape.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_cloudfrac.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_ctt.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_dbz.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_dewpoint.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_geoht.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_helicity.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_latlon.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_omega.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_precip.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_pressure.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_pw.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_rh.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_slp.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_temp.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_terrain.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_times.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_uvmet.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_vorticity.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_wind.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\interp.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\interputils.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\latlonutils.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\metadecorators.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\projection.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\projutils.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\py3compat.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\routines.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\specialdec.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\units.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\util.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\version.py -> build\lib.win-amd64-3.8\wrf copying src\wrf__init__.py -> build\lib.win-amd64-3.8\wrf creating build\lib.win-amd64-3.8\wrf\data copying src\wrf\data\psadilookup.dat -> build\lib.win-amd64-3.8\wrf\data running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler customize MSVCCompiler using build_ext CCompilerOpt.cc_test_flags[1008] : testing flags (/O2) error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ CCompilerOpt.cache_flush[804] : write cache to path -> C:\Users\asus\AppData\Local\Temp\pip-install-petjyihp\wrf-python\build\temp.win-amd64-3.8\Release\ccompiler_o pt_cache_ext.py
ERROR: Failed building wheel for wrf-python Running setup.py clean for wrf-python Failed to build wrf-python Installing collected packages: wrf-python Running setup.py install for wrf-python ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\asus\miniconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\asus\AppData\Local\Temp\pip-install-pet jyihp\wrf-python\setup.py'"'"'; file='"'"'C:\Users\asus\AppData\Local\Temp\pip-install-petjyihp\wrf-python\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\asus\AppD ata\Local\Temp\pip-record-ei73smes\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\asus\miniconda3\Include\wrf-python' cwd: C:\Users\asus\AppData\Local\Temp\pip-install-petjyihp\wrf-python\ Complete output (70 lines): running install running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "wrf._wrffortran" sources f2py options: [] adding 'build\src.win-amd64-3.8\build\src.win-amd64-3.8\wrf\fortranobject.c' to sources. adding 'build\src.win-amd64-3.8\build\src.win-amd64-3.8\wrf' to include_dirs. adding 'build\src.win-amd64-3.8\wrf_wrffortran-f2pywrappers.f' to sources. adding 'build\src.win-amd64-3.8\wrf_wrffortran-f2pywrappers2.f90' to sources. build_src: building npy-pkg config files running build_py creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\wrf copying src\wrf\api.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\cache.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\computation.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\config.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\constants.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\coordpair.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\decorators.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\destag.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\extension.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\geobnds.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_cape.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_cloudfrac.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_ctt.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_dbz.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_dewpoint.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_geoht.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_helicity.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_latlon.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_omega.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_precip.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_pressure.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_pw.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_rh.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_slp.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_temp.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_terrain.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_times.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_uvmet.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_vorticity.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\g_wind.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\interp.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\interputils.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\latlonutils.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\metadecorators.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\projection.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\projutils.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\py3compat.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\routines.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\specialdec.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\units.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\util.py -> build\lib.win-amd64-3.8\wrf copying src\wrf\version.py -> build\lib.win-amd64-3.8\wrf copying src\wrf__init__.py -> build\lib.win-amd64-3.8\wrf creating build\lib.win-amd64-3.8\wrf\data copying src\wrf\data\psadilookup.dat -> build\lib.win-amd64-3.8\wrf\data running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler customize MSVCCompiler using build_ext CCompilerOpt.cc_test_flags[1008] : testing flags (/O2) error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ CCompilerOpt.cache_flush[804] : write cache to path -> C:\Users\asus\AppData\Local\Temp\pip-install-petjyihp\wrf-python\build\temp.win-amd64-3.8\Release\ccompiler _opt_cache_ext.py
ERROR: Command errored out with exit status 1: 'C:\Users\asus\miniconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\asus\AppD ata\Local\Temp\pip-install-petjyihp\wrf-python\setup.py'"'"'; file='"'"'C:\Users\asus\AppData\Local\Temp\pip-install-petjyihp\wrf-python\setup.py'"'" ';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' ins tall --record 'C:\Users\asus\AppData\Local\Temp\pip-record-ei73smes\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\asus \miniconda3\Include\wrf-python' Check the logs for full command output.
Thanks for any help