Ask Your Question

Dicom files with sage

asked 2017-06-26 17:10:38 +0200

cdd gravatar image

Hi everybody! Please is there a way to manage DICOM files with sage? This is possible with pure python, using pydicom. How to use this tool under sage?

Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-06-26 19:01:34 +0200

tmonteil gravatar image

updated 2017-06-26 19:02:55 +0200

You shouold be able to install pydicom within Sage as follow. From the command line located in your Sage installation directory, just type:

./sage -pip install pydicom

Then start Sage and try to import it the usual way.

Do not hesitate to report your experience.

edit flag offensive delete link more


Thank for that answer. I want to specify that I'm on Windows. I'm working with sage on virtualbox.

when i try to type what you asked, I have somethink like this:

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "", line 10, in <module> exec compile(u'open("","w").write("# -- coding: utf-8 --\n" + _support_.preparse_worksheet_cell(base64.b64decode("LXBpcCBpbnN0YWxsIHB5ZGljb20="),globals())+"\n"); execfile(os.path.abspath("")) File "", line 1, in <module>

File "/tmp/tmpMES0gZ/", line 2 -pip install pydicom ^ SyntaxError: invalid syntax

cdd gravatar imagecdd ( 2017-06-28 18:10:50 +0200 )edit

You have to type this from a shell, not from a Sage session, see

tmonteil gravatar imagetmonteil ( 2017-06-30 11:38:38 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2017-06-26 17:10:38 +0200

Seen: 321 times

Last updated: Jun 26 '17