系统版本:22.04.5 LTS
ASAP下载地址:
ASAP-2.1-py310-Ubuntu2004.debhttps://github.com/computationalpathologygroup/ASAP/releases/download/ASAP-2.1/ASAP-2.1-py310-Ubuntu2004.deb在Ubuntu 22.04.5 LTS 上安装亲测没有问题。
安装方法:
dpkg -i ASAP-2.1-py310-Ubuntu2004.deb
安装的时候可能报错,提示缺少依赖库,缺什么安装什么。例如:我在安装的时候就缺少libdcmtk14库:
apt install libdcmtk14
配置PYTHON环境变量:
PYTHONPATH="/opt/ASAP/bin":"${PYTHONPATH}"
报错:ImportError: libpython3.10.so.1.0: cannot open shared object file: No such file or directory
解决方案:
export LD_LIBRARY_PATH=$RISCV/lib:/data/anaconda3/envs/open_clip_origin/lib/:$LD_LIBRARY_PATH
测试是否安装成功:
import matplotlib.pyplot as plt
import cv2
import numpy as np
import multiresolutionimageinterface as mir
reader = mir.MultiResolutionImageReader()
mr_image = reader.open('/home/zhangjie/Downloads/tumor_036.tif')
tile = mr_image.getUCharPatch(0, 0, 1024, 1024, 6)
cv2.imwrite("test.jpg", np.array(tile))
标签:Ubuntu2004,ASAP,import,py310,Ubuntu,软件,2.1,安装
From: https://blog.csdn.net/weixin_39806242/article/details/145013096