pythonpipenvgdcm

How can I install GDCM with the Python wrapper?


I'm on Ubuntu 16.04 and have been trying like crazy to install GDCM so I can use it with Python. I have pipenv installed, and I suspect that's causing issues.

I did sudo apt-get install libgdcm2.6 python-gdcm. It seems to install fine, but when I run python and then import gdcm, it complains there's no module named gdcm.

Has anyone come across this?


Solution

  • This means that the python cannot find the gdcm package within its environment. So your package is not installed properly, and/or your environment has not been configured correctly. Try the following:

    if it does not work you know the problem lies (also) somewhere else: