'import netcdf-fortran python

I have been trying to code in python and I need to use netCDF4. I did conda install netcdf4 conda install -c conda-forge netcdf-fortran

then I do import netCDF4

it works, then I do

import netcdf-fortran and I get the next error message,

File "<stdin>", line 1

import netcdf-fortran
             ^
SyntaxError: invalid syntax

Can somebody please bring some light to this? I am not very acquaintanced with python coding. All best and thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source