I’ve some issues for installing openslide on my computer. I’ve tried something, but unsuccessful. For example the package is not listed in Anaconda biometric repository, therefore when you try to install it via conda command, it says that the package cannot be found. When you want to install it with pip command, it says that it needs Microsoft Visual Studio v14 and if you check it on Microsoft website, you’ll see that MVSv14 with all build tools are about 5GB and I didn’t wanted to install 5GB because of a package which is less than 1MB!
While I was disappointed to have the package on my desktop computer, I tried to do all the steps manually. The good news is that it works fine! So what I’ve done:
- Download openslide binaries for windows from
https://openslide.org/download/
. - Extract the binary file and copy all the bin content to Anaconda bin directory or any other directory that you. For example, I’ve copied all contents (not just bin but all other directories) to Program Files.
- Add the bin directory to the system environment path. I think Anaconda bin directory should be in system environment path. If so, you don’t need to add it again.
- Download OpenSlide Python interface from the same link, i. e.
https://openslide.org/download/
. - Extract the content and copy the openslide directory to
C:\ProgramData\Anaconda3\Lib\site-packages
.
That’s it!
Now for being sure that everything works fine, open terminal and then ipython. Import the openslide and try to open_slide and read_region of a svs file. Then see the image with Pillow show command. Be careful not to read and show the level zero since it is usually very large.
Be First to Comment