pythonpycharmanacondapydicom

How to Install a Package in PyCharm when project interpreter is set to conda, and the package is not provided/listed by conda?


I installed pycharm on my computer. I set the project interpreter to acaconda3/bin/python because that is the python3 interpreter I used on my computer before installing pycharm. I was able to install all packages I need using pycharm's package installer except for pydicom which is not provided by anaconda. However, pydicom, one of the packages I need for my project, is not provided by conda and hence does not show up in the list of available packages when I search.

How do I install this package that is not available with conda?

enter image description here


Solution

  • enter image description here


    OR run pip by going to directory anaconda3/Scripts directory


    Since pydicom is supported by conda-forge channel it wont show up on Pycharm unless you add that channel to conda environment channels manually.

    Run below command for the environment

    conda config --add channels conda-forge
    

    enter image description here

    Then it should show up in Pycharm.

    enter image description here

    Once channel added you can run below command within environment

    conda install pydicom
    

    Reference: