The pydicom package is importable as dicom
until version 0.9.9. The documentation on read the docs is for the unreleased master branch version 1.0, in which the package name has changed to pydicom
.
Thus, try importing pydicom as:
import dicom
If you need to read a file, you can use the command:
ds = dicom.read_file('filename.dcm')
Once pydicom 1.0 is released, you can follow the wiki page for porting instructions.
上面这段的意思:
在pydicom0.9.9之前都是dicom,也就是在Python中使用时是:
import dicom
而在1.0之后就是:
import pydicom