FAQs
Question
When I import pandas from a local path, the following alarm is generated:
Procedure
- Run the python -m pip install backports.lzma command to install the LZMA module.
- Go to the /usr/local/python3/lib/python3.6 directory and edit the lzma.py file. The directory varies depending on hosts. You can run the which command to query the directory used by Python.
Change
from _lzma import *from _lzma import _encode_filter_properties, _decode_filter_propertiesTo
try:from _lzma import *from _lzma import _encode_filter_properties, _decode_filter_propertiesexcept ImportError:from backports.lzma import *from backports.lzma import _encode_filter_properties, _decode_filter_propertiesBefore modification
After modification
- Save the file and exit. Then, import pandas again.
- Question
- Procedure