mac环境 python3.7 lzma.py 报错解决
import pandas as pd
在使用pandas时报Could not import the lzma module解决方法:
1、安装了 backports.lzma
pip3 install backports.lzma
2、把lzma.py第27行左右的代码改为如下:
Users/apple/.pyenv/versions/3.7.4/lib/lzma.py
from _lzma import * from _lzma import _encode_filter_properties, _decode_filter_properties 改成: from backports.lzma import * from backports.lzma import _encode_filter_properties, _decode_filter_properties
相关推荐
三石 2020-10-30
roamer 2020-10-29
三石 2020-10-29
wangquannuaa 2020-10-15
wangquannuaa 2020-09-29
jzlixiao 2020-09-15
wangquannuaa 2020-08-30
三石 2020-08-23
逍遥友 2020-08-21
jzlixiao 2020-08-18
wangquannuaa 2020-08-17
QianYanDai 2020-08-16
cjsyrwt 2020-08-14
jzlixiao 2020-07-29
xirongxudlut 2020-07-20
mmmjyjy 2020-07-16
QianYanDai 2020-07-05
QianYanDai 2020-07-05
june0 2020-07-04