python在linux环境下安装skimage

python

一.执行代码

yum install xz-devel 

yum install python-backports-lzma

pip3 install scikit-image

pip3 install backports.lzma

二.修改文件

修改文件路径

/usr/local/python3/lib/python3.6/lzma.py

修改文件部分内容

from _lzma import *

from _lzma import _encode_filter_properties, _decode_filter_properties

给为

try:

from _lzma import *

from _lzma import _encode_filter_properties, _decode_filter_properties

except ImportError:

from backports.lzma import *

from backports.lzma import _encode_filter_properties, _decode_filter_properties

不然会报异常

ModuleNotFoundError: No module named "_lzma"

以上是 python在linux环境下安装skimage 的全部内容, 来源链接: utcz.com/z/530817.html

回到顶部