Search code examples
pythonpipinstallationcondapydicom

Install dicompyler for python using conda or pip


I am trying to install dicompyler to read DICOM-RT plan files through conda, but getting a 'PackageNotFoundError'.

The package is on Github at https://github.com/dicompyler/dicompyler-core. When downloading and install the tar using

pip install [directory\filename]

I get 'Command "python setup.py egg_info" failed with error code 1 in [directory]'.

Is there a way to install either through conda or from the tar?


Solution

  • I just tried to install the packages from the github, and it seems succeeded. Below is my step:

    1:Clone the code:

    git clone https://github.com/dicompyler/dicompyler-core.git
    

    2:Install from the source:

    cd dicompyler-core
    sudo python3.6 setup.py install
    

    3:Result:

    ..........
    Using /usr/local/lib/python3.6/site-packages
    Finished processing dependencies for dicompyler-core==0.5.3
    
    
    Python 2.7.6 (default, Oct 26 2016, 20:30:19)
    [GCC 4.8.4] on linux2
    
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import dicompylercore
    >>>