No module named 'openslide'

7.4k views Asked by At

I created a virtual environment with conda, and installed open slide. I activated my environment, but when I try to run my Python script, I get an error saying:

import openslide
ModuleNotFoundError: No module named 'openslide'

I'm using python3. Any idea what could be wrong?

I installed the package using conda. conda env create -f environment.yml. File looks like

name: myenv
channels:
  - defaults
  - conda-forge
  - bioconda
dependencies:
  - python=3.6.3
  - openslide
1

There are 1 answers

1
Kyoungwon Lee On

Try this

pip install openslide-python