1

I have a problem with a package 'pydicom' on macos. In pycharm I get an error ImportError: No module named dicom.

My code runs from the terminal without any problem (>> python abc.py or >> python2.7 abc.py). I checked the project interpreter, as you can see here.

The solution described here is does not help.

EDIT I created a new project with the same code and now everything works. I believe the only thing I changed in the old project was 'Project interpreter'. Interesting.

Community
  • 1
  • 1
MRKonrad
  • 11
  • 5
  • is the dicom library installed? you might need to install it first by doing pip install pydicom. refer http://pydicom.readthedocs.io/en/stable/getting_started.html#installing – Dinesh.hmn Jan 28 '17 at 19:17
  • Yes, I used 'sudo easy_install pydicom' in terminal. When I type it again I get: 'pydicom 0.9.9 is already the active version in easy-install.pth Using /Library/Python/2.7/site-packages/pydicom-0.9.9-py2.7.egg' – MRKonrad Jan 28 '17 at 19:21
  • See this page for how to install libraries in your PyCharm environment https://www.jetbrains.com/help/pycharm/2016.3/installing-uninstalling-and-upgrading-packages.html You can also add requirements files as shown here https://www.jetbrains.com/help/pycharm/2016.3/creating-requirement-files.html – funkotron Jan 28 '17 at 19:30
  • Possible duplicate of [ImportError: No module named 'bottle' - PyCharm](https://stackoverflow.com/questions/26069254/importerror-no-module-named-bottle-pycharm) – Jim G. Jul 28 '17 at 19:54

0 Answers0